SShortSingh.

Programming

0
ProgrammingDEV Community ·

Running LLMs On-Premise: Hidden Costs Beyond the Power Bill

A logistics firm's engineering director moved AI inference onto a local GPU after a cloud bill reached $8,000 in one month. Power consumption proved modest, but the true expense lies in setup and maintenance time that is rarely accounted for. By the author's estimate, the setup and debugging consumed about 40 hours over three months, covering driver conflicts, networking breakdowns, and silent output errors. Over three months, the local setup cost roughly $58 to $73 per month including hardware amortization, versus $180 to $240 for a comparable cloud API, with breakeven around month four. The analysis concludes that on-premise hosting pays off mainly for high-volume, repetitive, or privacy-sensitive workloads, while low-volume use is usually cheaper through an API.

0
ProgrammingDEV Community ·

Website Migration: Plan the Cutover Before Changing DNS

A successful website move requires transferring data, traffic, and business functions together, not just copying files to a new server. Teams should inventory every component, including the application, database, uploads, email, DNS, certificates, background jobs, and external integrations, and define who authorizes the switch and what would trigger a rollback. For live sites, a final synchronization or maintenance window is needed so that orders or registrations made after the initial copy are not lost, and two servers should never accept writes without a deliberate sync design. After cutover, the old server should stay available during the overlap period, with login, forms, checkout, redirects, background jobs, and email verified separately. The old service should only be retired once migration and retention requirements are met.

0
ProgrammingDEV Community ·

Developer Builds Offline Ethiopian Calendar App in Flutter

A developer describes building the Zemen App, an offline Flutter calendar that converts between Ethiopian and Gregorian dates and tracks national holidays and Orthodox fasting days. The core is a self-contained Dart engine that uses a Julian Day Number as a neutral pivot between the two calendars. The Ethiopian calendar's 13 months, with fixed month lengths and a leap year rule every four years, keep the conversion arithmetic simple. The engine relies only on integer math, so it behaves consistently across devices and is fast enough for calendar grids. The article walks readers through the algorithms so they can adapt the approach to other non-Gregorian calendars.

0
ProgrammingDEV Community ·

Solo Developer Builds AI Tool to Validate Startup Ideas Using Live Data Sources

A developer spent three months creating Ainexa, a startup idea validator that scans live sources such as Reddit, Hacker News, and Product Hunt. Unlike general chatbots, the tool requires every claim to link to a verifiable source and avoids fabricating evidence. The creator analyzed the first 49 ideas submitted by early users and reported findings such as weak demand for thin AI wrapper products and that specific ideas tend to show stronger demand. He also noted that ideas with no competitors may signal a lack of market rather than an opportunity. He acknowledged that the product currently has no paying users, with distribution being his main challenge.

0
ProgrammingDEV Community ·

OpenAI to Retire GPT-4o and GPT-4.1 From API by January 14, 2027

OpenAI has told developers that GPT-4o, GPT-4o mini, GPT-4.1, and GPT-4.1 mini will be removed from its API on January 14, 2027, with requests to those models failing afterward. The company is directing users to gpt-6-luna as the replacement for all four, and custom fine-tunes follow the same timeline. An earlier shutdown on October 23, 2026 affects the May 2024 GPT-4o snapshot and several other older models, so developers pinning that specific version face a sooner deadline. The notice gave roughly three months, which falls short of the six-month minimum OpenAI typically promises for generally available models. ChatGPT users are not affected, since GPT-4o was already removed from ChatGPT's model picker in February 2026.

0
ProgrammingDEV Community ·

AI-built Zendesk alternative passes all 24 acceptance checks in test run

A team tested whether Claude, working in Type, could build a help desk for small support teams from a detailed blueprint. The resulting app passed all 24 acceptance checks on a fresh database, with 64 automated tests, covering email and web-form tickets, Zendesk-style statuses, threaded email replies and internal notes. The build exposed 21 gaps in the spec, more than in any of the other twelve blueprints tested, and all have since been fixed. The test did not cover real production email, sign-in, scheduling or hosting. The authors estimate savings of a few hundred dollars a year against Zendesk's Support Team plan for a small team, though the case for building is stronger when a Suite plan would otherwise be needed.

0
ProgrammingDEV Community ·

Lumen OS: Building a Browser-Based Quant Trading Terminal Without React Frame Drops

The author describes building Lumen OS, a browser-based quantitative trading workstation, to stream high-frequency market data at smooth 60 FPS. Incoming data rates of 200 to 500 events per second can cause React state updates to drop frames sharply, so the system routes WebSocket packets through an in-memory ring buffer that bypasses React reconciliation. The platform follows a local-first design, keeping telemetry, trade journals, and interface state in local memory for near-instant interaction. Access to its proxy backends is secured with Cloudflare Zero Trust using mutual service token verification. To reduce visual fatigue, it also uses a procedural Web Audio API synthesizer that sounds tones when large institutional bid walls are filled.

0
ProgrammingDEV Community ·

Python Script Converts 500 PNGs to JPG in 6.7 Seconds, Benchmarked Against Alternatives

A developer needed hundreds of PNG images converted to JPG to meet a content management system's 25 MB per-image limit. They wrote a Pillow-based Python script that flattens transparent images onto a white background, handles palette-mode files, and writes output to a separate folder to protect originals. Running on a MacBook with Python 3.13, the script processed 500 images of 800×600 pixels in 6.7 seconds, reducing total size from about 745 MB to 172 MB. The author notes that real photos and screenshots typically compress better than the noise images used in the test. The post also acknowledges that for one-off jobs, on other people's machines, or for non-technical users, a browser-based converter may be more practical.

0
ProgrammingDEV Community ·

Payment-enabled MCP endpoints pass anonymous handshakes at 74.4%, above registry average

A read-only scan by mcpreflight checked 293 x402 payment endpoints listed in the official MCP Registry by sending two anonymous JSON-RPC requests to each. Of these, 218 returned a clean handshake, a 74.4% pass rate, compared with a 48.8% baseline across the full registry. The researchers suggest commercial pressure, since a malformed payment challenge fails in front of paying customers, explains the stronger results. They caution that the figure is a single point-in-time measurement and may be fragile as payment volume and endpoint changes grow. The project re-runs its registry scan weekly and publishes its data and open-source tooling.

0
ProgrammingDEV Community ·

ContextBridge Chrome Extension Carries AI Conversation Context Across Models

A developer built ContextBridge, a Chrome extension that lets users move ongoing work between AI chatbots without re-explaining everything. The tool extracts a visible conversation and uses Gemma 3 (4B), an open-weight model run locally via Ollama, to produce a structured handoff covering project details, decisions, constraints, blockers, and next steps. Users can edit the result, then copy it or export it as Markdown to continue in another AI. Because inference runs on the user's own machine, no chat data goes to a third-party inference service and there are no per-request API fees. The developer also suggests a possible paid Pro tier offering saved project contexts and reusable templates.

0
ProgrammingDEV Community ·

Page Cache and Object Cache in WordPress: Different Jobs, Different Tests

Page caches store complete generated responses that servers can reuse for eligible requests, while object caches hold reusable application data between requests. The two are not interchangeable, and conflating them complicates troubleshooting. Page caching must exclude logged-in views, carts, checkout, and personalized content, since serving private output to others is both a correctness and privacy failure. Object caching does not replace page caching or fix slow queries, and it requires proper invalidation when underlying values like prices or stock change. The guide recommends a repeatable baseline, changing one setting at a time, separating cold and warm request measurements, and verifying both performance and session privacy.

0
ProgrammingDEV Community ·

Stored procedures em PL/SQL: como implementar regras de negócio no banco de dados

O artigo explica o que são stored procedures, blocos de código armazenados no banco que podem ser chamados por nome e receber parâmetros. Usando como exemplo uma procedure de transferência bancária em PL/SQL da Oracle, o texto mostra a estrutura básica de criação. Entre as vantagens citadas estão menos tráfego de rede, reutilização de código, consistência das regras críticas e maior segurança no acesso às tabelas. O autor também aponta desvantagens, como maior dependência do SGBD, dificuldade de testes e lógica dividida entre banco e aplicação. Ao final, promete mostrar como chamar a procedure a partir de uma aplicação Spring Boot.

0
ProgrammingHacker News ·

Butlerian Jihad: Hacker News Discussion Links to Dune Wiki Entry

A Hacker News post shared a link to the Dune Fandom wiki page on the Butlerian Jihad, a fictional holy war from Frank Herbert's Dune universe. The post received 18 points and 7 comments from readers. The wiki entry describes the conflict in which humanity rebelled against thinking machines and banned them, shaping the setting's future. The source material offers only a link and engagement metrics, with no further details about the discussion's content.

0
ProgrammingDEV Community ·

How to Write an ATS-Friendly Resume in 2026: Layout, Bullets and Tailoring

A guide from DEV Community explains how to build a resume that passes applicant tracking software before a recruiter reads it. It recommends a plain single-column layout with standard headings, a short summary aimed at one specific role, and experience bullets that open with an action verb and state a real result. The author cautions against invented figures and against duty-only descriptions, and advises tailoring skills and wording to each job posting. The piece also suggests checking the exported file as plain text to catch parsing problems before submitting.

0
ProgrammingDEV Community ·

Living Specs in SpecKit: Keeping One Current Spec Per Feature

The author, nine months into building a VS Code extension with spec-driven development, found that per-change specs grew into an unread archive. Their SpecKit Companion tool introduces a living spec: a single document per feature, such as billing or auth, describing what it must do today. Each run that touches a feature reads that document before drafting and updates it once the work is complete. This avoids agents re-deriving the same understanding from code every time and makes it easy to see a feature's current behavior. The piece argues that frozen, numbered spec folders become a hard-to-navigate history rather than usable documentation.

0
ProgrammingDEV Community ·

Forminator WordPress Plugin Flaw CVE-2026-15748 Allows Unauthenticated Code Execution

A critical vulnerability, tracked as CVE-2026-15748, affects the Forminator Forms WordPress plugin in version 1.56.1 and earlier, and was fixed in 1.56.2. Reported through Wordfence's bug bounty program, it carries a CVSS score of 9.8 and requires no authentication to exploit. The plugin, installed on more than 600,000 WordPress sites, fails to properly restrict file uploads: it trusts upload settings supplied in the request rather than those saved by the admin, and its extension blocklist compares MIME types without normalization. Combined, these weaknesses let an attacker bypass the filter with a crafted value and upload a PHP file, enabling remote code execution. The exploit requires a targeted form containing both a file upload field and a select field.

0
ProgrammingDEV Community ·

Why a script passed locally but failed remotely: eight environment facts to diff

A developer's script ran cleanly on a laptop but failed on a remote host with only a generic exit code. The cause was not the code but differences between the two machines in timezone, file-descriptor limits, and default encoding. Instead of adding more logs, the developer now compares structured snapshots of host facts side by side. The author lists eight environment properties that have changed job behaviour, including interpreter version, encodings, timezone, locale, CPU count, and filesystem details. A small script captures these facts as JSON and prints only the fields that differ between hosts.

0
ProgrammingDEV Community ·

How to export Aqar.fm property listings to Google Sheets without coding

Aqar.fm, Saudi Arabia's largest property platform, offers no built-in export option, which makes comparing rents across districts tedious. The article describes using a no-code scraper on Apify to pull listings for cities such as Riyadh and Jeddah, with filters for category, district, price, area and bedrooms. Results can be exported as CSV or Excel and imported into Google Sheets, with an optional schedule for automatic refreshes. The write-up highlights a price-per-square-metre comparison column against district medians, using a Riyadh example listed 40.6% below its district median. The scraper is billed per listing with no subscription, and a separate monitoring tool is mentioned for alerts on new listings and price drops.

0
ProgrammingDEV Community ·

Four AI workflows that draft and suggest but leave the final decision to humans

An article for DEV Community describes four ways to use AI agents while keeping a person in control of every outcome. The examples cover drafting customer support email replies in Gmail, turning meeting transcripts into action items, generating daily Slack channel summaries, and suggesting bookkeeping categories in QuickBooks. In each case the AI produces a draft, summary, or suggestion, and a human reviews and approves before anything is sent, booked, or filed. The piece is promoted through Roar Workflows, a free guide that lists problems, tools, steps, and cost estimates for these workflows.

0
ProgrammingDEV Community ·

Green Test Suites Can Miss Agent Patches: Gating on Diff Coverage

A passing test suite after an AI agent's patch only shows that nothing crashed, not that the changed lines actually ran. File-level coverage percentages are averages and can hide a newly added, entirely unexecuted branch. The article proposes a diff-coverage gate that intersects each patch hunk's changed lines with the lines the suite executed, verdicting each hunk rather than relying on percentages. It provides a Python script that extracts changed line ranges from git diff against the merge base, along with coverage commands that enable branch tracking and scope measurement to source files. The approach also addresses the case where a quarantined flaky test can make the signal misleading.

Page 1 of 2717Older →