SShortSingh.

Programming

0
ProgrammingDEV Community ·

Six Pre-commit Hook Tips for Terraform and Python Repositories

A common frustration in pull requests is reviewers repeatedly flagging formatting and lint issues that could be caught earlier. Pre-commit hooks move these checks onto the developer's machine before a commit is created, which is especially useful for repos combining Terraform with Python code such as Lambda handlers. The guidance recommends pinning each hook to a specific tag or commit SHA rather than a branch name, and updating deliberately with autoupdate so local machines and CI stay aligned. It suggests starting with Terraform fmt, tflint, and terraform-docs, then using Ruff to handle Python linting and formatting in one tool. The article also warns that hook IDs can change between releases and that hooks should not run terraform plan, since that requires credentials and network access best kept in CI.

0
ProgrammingDEV Community ·

Sourcerer: an offline AI tool that tells resellers the most to pay for a thrift find

Sourcerer is an offline-first sourcing assistant for resellers that identifies an item from a photo or typed description using a local open-weight model. Plain TypeScript code, not the model, then calculates the maximum a buyer should pay after eBay fees, shipping, supplies, and a desired profit multiple. The tool runs on the user's own laptop or home machine, with the phone serving as camera and screen, so it works without internet or per-scan API costs. When no machine is reachable, it falls back to cached data and a clearly labeled estimate based on the user's sold history. The creator targets weekend flippers handling a few dozen items a month, and the app also drafts listing titles and descriptions.

0
ProgrammingDEV Community ·

Explaining UTM Parameters and How to Build Tracking Links for Traffic Analysis

UTM parameters are short tags appended to a website URL that reveal where a visit came from, helping marketers compare channels like LinkedIn and email. The tags do not collect data on their own, so a configured analytics tool such as Google Analytics 4 is still required to report them. The guide outlines five common parameters: source, medium, campaign, content, and term, with source, medium, and campaign recommended for beginners. It walks readers through creating tagged links without coding, using a LinkedIn post as an example. It also suggests a consistent naming convention so campaign results can be reviewed together.

0
ProgrammingDEV Community ·

IBM Warns of 25 Langflow OSS Flaws Affecting Versions 1.0.0 Through 1.12.2

IBM has issued a security bulletin describing 25 vulnerabilities in Langflow OSS versions 1.0.0 through 1.12.2, with 2 rated critical, 19 high and 4 medium. No exploitation in the wild or public proof-of-concept has been confirmed, so the response is preventive rather than a breach investigation. Two anonymous, no-login flaws allow code execution, while many others require an account, and some involve path traversal, credential leaks, or server crashes from oversized ZIP archives. IBM recommends upgrading to Langflow 1.12.3 immediately, keeping the platform off the public internet, and restricting who can create or edit flows until patching is complete. Organizations should also rotate any API keys and credentials stored in the platform after upgrading.

0
ProgrammingDEV Community ·

OpenGameBuilder Turns a One-Sentence Description into a Playable Game with Local LLMs

OpenGameBuilder is an open-source tool that lets users create small games from a short description, using a local model such as Gemma 4. It builds on a world engine that draws everything in code, so a world file of only about 551 bytes of JSON can produce a full village. Users pick a world and a game type, press Play, and download the result as a single offline HTML file. The project aims to help teachers, game masters, and small game makers who cannot draw or animate. Its developers also describe a royalty model in which the tools are free and fees apply only to games that earn over US$500.

0
ProgrammingDEV Community ·

How HTTP chunked transfer encoding works, with Go and Python examples

This DEV Community article explains HTTP chunked transfer encoding, which lets a server send a response body in pieces without knowing its total length in advance. It describes common use cases such as long-running computations that emit output gradually, large files served from disk, real-time data feeds, and server-sent events. The wire format is broken down, with each chunk prefixed by its size in hexadecimal and a zero-length chunk marking the end of the response. The piece also includes practical implementations of the technique, one written in Go and one in Python, that stream output over raw sockets.

0
ProgrammingDEV Community ·

SubScribe Field OS: Offline Voice Tool Turns Spoken Site Changes into Billable Documents

SubScribe Field OS is an open-source, local-first voice system that helps small construction subcontractors document out-of-scope work. A worker can describe a change in plain speech, such as moving electrical boxes because of a duct obstruction, and receive a structured, contract-referenced PDF within seconds. The stack runs entirely on the device, combining offline transcription tuned to trade vocabulary, schema-validated routing with a local Gemma model, and a contract search index so no client documents leave the hardware. The developer argues that recovering even one unbilled change order per month could justify the tool, and that avoiding per-token cloud fees keeps processing costs at zero per document.

0
ProgrammingDEV Community ·

Engineer Questions Pricing Rounding Logic Written by Principal Engineer

While tracing an unusual result in the pricing service, a developer noticed a rounding step applied before a discount rather than after, which looked incorrect. The code was written three years earlier by the team's principal engineer, and the developer acknowledged they might be missing context. The article advises turning the suspicion into a concrete, reproducible test with a real order example, then raising it openly as a question with evidence in the ticket or team channel. Whether the behavior turns out to be intentional or a genuine bug, the author argues the process of careful reading and clear questioning is the valuable takeaway. The piece was written by Asael Shinder and published on DEV Community.

0
ProgrammingDEV Community ·

QR generator bug caused a warehouse barcode to scan as a different product

A developer's barcode generator produced a Code 128 label for a warehouse bin, "BIN-7742-A", that was valid under the format spec. Two weeks after printing, the scanner returned the wrong item, almonds, because the leading character was read as a control code, shifting the decoding. The label was technically correct Code 128 but encoded a different string than intended. The developer fixed it by adding mod 103 checksum validation, refusing payloads that could be misread as control codes unless raw mode is explicitly requested, and exposing both encoded and decoded values in the API response. The episode underscores that a scannable barcode is not necessarily one that scans as the intended value.

0
ProgrammingDEV Community ·

LedgerLens: Open-Source Local AI Turns Handwritten Shop Ledgers into Structured Data

LedgerLens is an open-source tool designed to help small shopkeepers, vendors, and freelancers in India digitize paper ledgers written in Hindi, English, or a mix of both. The local-first agent runs on a standard laptop without a GPU, extracting structured entries such as dates, parties, amounts, and credit or debit types from photos of handwritten records. It validates and normalizes extracted data while flagging low-confidence entries for human review, rather than silently altering amounts. Unlike cloud-based accounting apps, it keeps sensitive financial records on the user's device, using open-weight models served through Ollama. The project was built for the Hacktoberfest Open-Source AI Challenge under the Side Hustle theme.

0
ProgrammingDEV Community ·

Mindleau Adds a One-Time Remove Ads Purchase to Its Local-First Flutter App

The developer behind Mindleau, a free iOS and Android brain dump journal and mood tracker, has added a single in-app purchase that removes all ads. The purchase is a one-time, non-consumable payment handled through RevenueCat, which verifies receipts on its servers and reports an ads_free entitlement tied to the user's Firebase ID. A PurchaseService manages the entitlement and caches it locally so paying users never see ads, even when offline or while waiting for the store to respond. Ads are controlled by an AdService that reads the purchase state at startup and listens for changes, and the Google Mobile Ads SDK is not started for users who have paid. The design also requires the app to keep working if purchases fail, and the third-party RevenueCat SDK must be disclosed in the privacy policy and store labels.

0
ProgrammingDEV Community ·

ACP, UCP y AP2: los protocolos que permitirán a agentes de IA comprar en tiendas online

Los protocolos del comercio agéntico son reglas comunes que permiten a un agente de IA descubrir productos, pagar y acreditar que actúa en nombre de un cliente. Los principales son ACP, impulsado por OpenAI y Stripe, y UCP, de Google, para comprar, además de AP2 para autorizar pagos y los protocolos de Visa y Mastercard basados en Web Bot Auth para identificar al agente. Las tiendas pequeñas y medianas no necesitarán implantarlos manualmente, ya que llegarán a través de su plataforma o pasarela de pago, aunque sí deberán mantener datos de producto legibles por todos ellos. Según el texto, estos estándares buscan evitar integraciones a medida por cada tienda, de forma similar a lo que supuso HTTPS para el comercio electrónico.

0
ProgrammingDEV Community ·

Disney Agrees to Hire Most of Character.AI's Staff in a Bid That Could Be Topped

A court filing indicates Disney has agreed to hire the majority of Character.AI's workforce as part of a stalking horse bid for the company. The vast majority of employees who were offered jobs have accepted them, according to the filing. Because a stalking horse bid is an initial offer that rival buyers can outbid, the Disney arrangement may serve as a baseline rather than the final price. The deal is therefore a talent-focused move rather than a completed acquisition. Analysts note that users and developers relying on Character.AI's products or contracts should plan for both a Disney-led outcome and a competing bid.

0
ProgrammingHacker News ·

Agent-Skills.market launches as a site listing skills for AI agents

A new website called Agent-Skills.market was shared on Hacker News, where it received 7 points and one comment. The site appears to be a marketplace or directory for skills intended for AI agents. The source material provides only the site's URL, its Hacker News discussion link, and basic engagement metrics. Beyond these details, no further information about the platform's features, creators, or launch date is available from the item.

0
ProgrammingDEV Community ·

Selective RabbitMQ dead-letter replay: move only matching messages with a Python script

Replaying an entire RabbitMQ dead-letter queue resends messages that should not be retried, such as orders and declined payments. Basic get-and-requeue loops fail because requeued messages return to the head of the queue. The article's approach keeps unwanted messages unacknowledged while reading onward, then returns them all with a single negative acknowledgement. Matching messages are republished with publisher confirms and mandatory routing before the original is acked, and dead-letter headers are stripped. Tests on classic and quorum queues reportedly preserved the order of the messages left behind and kept nothing moved if a failure occurred.

0
ProgrammingDEV Community ·

llama.cpp UI Adds HuggingFace Hub Model Discovery and Synced Sidecar Downloads

A recent pull request brings a Discover Models view into the llama.cpp UI, letting users search and filter GGUF models hosted on HuggingFace Hub without leaving the app. Previously, users had to locate and download quantized models manually, and draft sidecar files such as dflash or mtp had to be tracked separately. The new view shows download buttons that reflect live states like queued, in progress, or paused, and lists draft files as sub-items under their main model. The download subsystem in common/download.cpp was extended so that downloading a main model automatically queues its sidecars, with pause, resume, and cancel applying to all related files together. The change also includes settings toggles to enable or disable the Discover integration and to filter out unsupported models.

0
ProgrammingDEV Community ·

BillBuddhi: Local-First AI Tool Turns Invoices into Reviewable Ledgers

BillBuddhi is an open-source prototype aimed at Indian freelancers and small businesses, built by a developer for a Hacktoberfest AI challenge. The tool accepts invoice images and text-based PDFs, extracting text with Tesseract OCR and pypdf before a local Gemma model running through Ollama suggests structured fields such as supplier, tax components, and totals. Users can correct the extracted values, review basic consistency flags, and export confirmed entries to CSV. The project is built with Python and Streamlit, and its creator stresses that it is not accounting software and does not provide GST compliance or tax advice. Running the model locally is presented as a way to keep sensitive financial data under the user's control.

0
ProgrammingDEV Community ·

How to Convert HEIC Photos to WebP for Faster Websites Without Uploading Them

Large photos are often the heaviest files on a web page, and iPhone HEIC images cannot be displayed by most browsers. The article recommends WebP, which typically yields files 25–34% smaller than JPG at similar visual quality and supports transparency. It advises converting only key images such as banners, product photos and large files first, and checking results for artifacts, file size and dimensions. A browser-based converter can handle HEIC-to-WebP conversion locally, so photos are not uploaded to a server. The piece also recommends using a picture element with a JPG fallback and keeping original HEIC files for future edits.

0
ProgrammingDEV Community ·

HisabMate: Local-First AI Ledger for Indian Microbusiness Credit Records

HisabMate is an open-source, local-first digital version of the traditional bahi-khata credit ledger used by small Indian shopkeepers and tradespeople. It keeps customer data on the owner's own machine, using exact integer-paise arithmetic and SQLite storage rather than cloud accounts or subscriptions. A local language model via Ollama assists with transaction entry, but the application code alone validates and calculates balances. The developer says the project is not publicly deployed and has no paying users yet, so the target market remains a hypothesis. The project was submitted to a Hacktoberfest open-source AI challenge.

0
ProgrammingDEV Community ·

GitHub Copilot to Retire Three Models on November 16, 2026

GitHub will remove Claude Opus 4.8, Claude Opus 5, and GPT-5.6 Terra from Copilot on November 16, 2026. Its suggested replacements are Claude Opus 5.5 for the Claude models and GPT-6.1 Sol or GPT-6 Luna for GPT-5.6 Terra. The one exception is Claude Opus 4.8, which stays available to individual Copilot subscribers on annual plans. The article notes this is the third round of retirements in a recurring pattern and urges developers to audit pinned model names in their code, scripts, and CI pipelines. Anthropic's own API continues to offer these models until at least mid-2027.

← NewerPage 325 of 3077Older →