SShortSingh.

Programming

0
ProgrammingDEV Community ·

How 3 SMEs Cut Email Overload by Over 50% Using Client Portals

A service agency documented outcomes from deploying custom client portals across three small businesses over 18 months, including a marketing consultancy, an accounting firm, and a web agency. The marketing consultancy saw email volume fall by around 58% within six weeks, while file-retrieval time for the four-person team dropped to near zero. The accounting firm reduced routine client status emails by roughly 65% and cut client onboarding time in half, though an overly complex initial dashboard limited early adoption to just 40%. Simplifying the portal interface to three core elements pushed adoption to 71% within 30 days. The deployments highlighted that portals work best by eliminating low-value communication rather than replacing all client interaction.

0
ProgrammingDEV Community ·

Critical Sogou Input Method Flaw Lets Hackers Deploy GrayRabbit Backdoor via Single Link

A critical vulnerability (CVE-2026-51990) in Tencent's Sogou Input Method for Windows is being actively exploited by threat actor UNC3569 to deploy the GRAYRABBIT backdoor. Attackers send victims a crafted sgbiz: URI link that chains an unvalidated parameter, an outdated sandboxless Chromium 80 instance, and a separate V8 exploit (CVE-2021-38003) to achieve remote code execution with a single click. Once executed, a downloader drops legitimate 7z.exe alongside a malicious DLL and encrypted payload into C:\Users\Public\Documents\, ultimately loading GRAYRABBIT into memory via DLL sideloading. The backdoor communicates with a command-and-control server over raw RC4-encrypted TCP on port 443, supporting shell access, file transfer, and in-memory plugin loading. Tencent has released a patch in version 16.3.0.3498, and users are urged to update immediately and audit process chains and network traffic for signs of compromise.

0
ProgrammingDEV Community ·

GraphQL @oneOf Directive Now Standard, Enforcing Exactly One Input Field in Schemas

The GraphQL specification's September 2025 edition officially standardizes the @oneOf directive, which enforces that exactly one field is supplied in an input object. Previously, developers had to choose between multiple root fields or nullable arguments with manual resolver-level validation — both error-prone approaches. By marking an input type with @oneOf, the schema itself rejects invalid combinations before a resolver ever runs, moving constraint logic out of application code. The directive also enables polymorphic inputs, filling a long-standing gap since GraphQL has supported union types only on the output side. Major server libraries including GraphQL.js v16+, GraphQL Ruby, GraphQL Java, and others already ship support for the feature.

0
ProgrammingDEV Community ·

Python Basics Explained: Functions, Error Handling, and File Operations

A new developer guide published on DEV Community breaks down core Python programming concepts without requiring prior coding experience. The guide covers how functions work, including parameter types such as positional, keyword, default, and variable arguments, as well as scope and return values. It also outlines eight common built-in exceptions in Python, explaining the conditions that trigger each error. The article further explains error handling using try, except, else, finally, and raise blocks to manage runtime failures gracefully. Finally, it addresses file operations, covering read, write, and append modes alongside the context manager for safe resource handling.

0
ProgrammingHacker News ·

ChaosTree: Open-Source Java Library Offers Four Tree Implementations With No Dependencies

A developer has released ChaosTree, a zero-dependency Java library that implements four sorted tree data structures: AVL Tree, Red-Black Tree, B-Tree, and B+Tree. The library targets JDK 21 and above, implementing standard Java interfaces such as NavigableSet, NavigableMap, SequencedSet, and SequencedMap. The project grew out of the developer's personal effort to deepen their understanding of data structures, evolving from a Set-only library into a full Set and Map solution with attention to memory layout and JVM performance. ChaosTree has been validated through multiple testing approaches including Guava Testlib compatibility checks, property-based testing with jqwik, and differential testing against Java's built-in TreeMap and TreeSet. The source code and benchmarks are publicly available on GitHub, and the developer is actively seeking community feedback on API design and benchmark methodology.

0
ProgrammingHacker News ·

pkgsrc: The Cross-Platform Package Manager Worth Knowing About

pkgsrc is a cross-platform package management system originally developed by the NetBSD project. It allows users to install and manage software across a wide range of operating systems, not just BSD variants. The system is valued for its portability and consistency across different Unix-like environments. A 2021 blog post resurfaced on Hacker News highlighting its practical advantages for developers and system administrators. Despite limited discussion, the post drew attention to pkgsrc as an underappreciated tool in the open-source ecosystem.

0
ProgrammingDEV Community ·

Developer Launches SeedSQL to Auto-Generate Relational SQL Test Data with Key Integrity

A developer has built SeedSQL, a free web tool designed to simplify the creation of realistic mock data for complex relational database schemas. The tool addresses common pain points such as foreign key mismatches, format errors, and the time-consuming task of writing manual seed scripts. SeedSQL automatically maps parent-child table dependencies, ensuring referential integrity across linked tables like users, orders, and payments. Users can export generated data as SQL insert scripts or CSV files compatible with PostgreSQL and MySQL. The free tier supports up to 1,000 rows and includes localization features for country-specific data formats.

0
ProgrammingDEV Community ·

AI Agents Can Help Automate Shopify, But Production Failures Are Costly

A developer and e-commerce consultant shares hard-won lessons from deploying AI agents on Shopify, warning that real-world results often fall short of the marketing promise. One client spent $5,000 in LLM credits on a product description agent that repeatedly hallucinated features unrelated to their store. In a separate case, an inventory automation agent misread Shopify's API and accidentally zeroed out stock across entire product categories. Customer service bots built with frameworks like CrewAI have also been observed entering endless clarification loops, burning API costs while failing to resolve basic refund requests. The author concludes that AI works best for repetitive, low-stakes tasks like drafting bulk product descriptions, but requires strict guardrails, human review, and robust error-handling before it can be trusted in production.

0
ProgrammingDEV Community ·

Five Common Data Leakage Traps That Make ML Models Look Better Than They Are

Data leakage is one of the most frequent reasons machine learning results appear stronger than they actually are, yet few practitioners check for it systematically. The five main culprits include duplicate or near-duplicate rows shared across training and test sets, temporal look-ahead leakage from random splits on time-series data, and features that inadvertently encode the target variable. A real-world demonstration using the EEG Eye State dataset showed a model's AUC score collapsing from 0.971 to 0.546 simply by switching from a random split to a time-respecting one. To address this, the author developed two open-source Python tools — LeakHound, which detects all five leak types and reports honest versus inflated scores, and safesplit, which prevents leakage by enabling group-aware, time-aware, and sequence-aware data splitting.

0
ProgrammingDEV Community ·

Why AI Agent Reports Are Not Proof: The Case for Independent Artifact Verification

A software engineering post argues that session reports generated by AI agents are self-descriptions, not independently verifiable evidence. The author contends that approving a report — even with multiple reviewers — only means one observation has been read multiple times, not independently confirmed. The post cites a real example where a test suite was reported stable and approved twice, yet a fresh rerun against the actual files on disk revealed two failures in sixteen runs. The recommended practice is to check the exact worktree, read the actual diff, run the declared command, and preserve its output for others to inspect. The core principle is that a report serves as a map to the artifact, not a substitute for re-running and directly observing it.

0
ProgrammingDEV Community ·

Dev Builds 5 Vanilla JS Browser Games, Documents the Bugs That Taught Him Most

A developer created a free browser game center hosted on GitHub Pages using only vanilla JavaScript, HTML, and a CDN-loaded Three.js library — no frameworks, no build tools, and no backend. The project was designed so anyone, including children on school laptops, could play without creating accounts or installing software. To comply with ad network policies, three games were split into separate wrapper and raw canvas pages using iframes, ensuring ads only appeared alongside publisher content. For a 3D real-time strategy game, a switch to instanced mesh rendering reduced draw calls from hundreds to just five, regardless of the number of on-screen tanks. The developer also discovered that headless Chrome uses a software rasteriser that silently fails shadow rendering, a debugging lesson that cost significant time before the root cause was identified.

0
ProgrammingDEV Community ·

MarkoMetrics Built a Python Script to Auto-Audit Google Business Profiles Across Markets

SEO agency MarkoMetrics developed a lightweight Python-based audit tool to automatically detect data inconsistencies in Google Business Profiles (GBP) for B2B SaaS clients operating across the UK and Southeast Asian markets including Singapore, Malaysia, Indonesia, and the Philippines. The script uses the Google Business Profile API to pull live listing data and compare it against a canonical source of truth, typically exported from a CRM. It flags issues such as category mismatches, invalid or missing phone numbers, unverified location statuses, and absent business hours. The tool was built to replace manual weekly checks, which the team found unscalable across multiple regional profiles. MarkoMetrics has shared the full script and setup instructions publicly so other teams can adapt it for their own multi-location SEO workflows.

0
ProgrammingDEV Community ·

Free browser tool checks EU CRA Article 14 compliance via dependency lockfiles

A developer has released a free, browser-based tool at cra.toledotechnologies.com/check that lets users check software dependencies for EU Cyber Resilience Act Article 14 obligations by pasting common lockfiles or SBOMs. Under Article 14, enforceable from 11 September 2026, companies must notify their national CSIRT and ENISA within 24 hours if a vulnerability in their EU-market product is being actively exploited. The tool cross-references declared dependencies against the OSV.dev advisory database and CISA's Known Exploited Vulnerabilities catalogue, with all processing done locally in the browser and no file contents sent to the developer's servers. A companion GitHub Action, cra-watch, is also available for automated CI pipeline checks across twelve lockfile formats. The developer cautions that a KEV match does not automatically trigger a reporting obligation, and that reachability of the vulnerable code path remains a key factor under the European Commission's July 2026 guidance.

0
ProgrammingDEV Community ·

Developer Fine-Tunes 7B LLM for Khattak Pashto Dialect Using LoRA and Unsloth

A developer fine-tuned a Qwen2.5-7B large language model to adapt it toward the Khattak Pashto regional dialect, using a technique called LoRA (Low-Rank Adaptation) alongside the Unsloth training framework. LoRA works by keeping the original model weights frozen and training only a small set of additional parameters, making the process far less resource-intensive than full fine-tuning. Unsloth complemented this by reducing memory usage and speeding up training, making the experiment feasible without access to large GPU clusters. Over the course of training, the model's loss dropped significantly from 3.44 to 0.22, though the developer noted that real-world evaluation remains essential beyond training metrics alone. The project, documented as Khatta-ka-LLM, highlights how parameter-efficient fine-tuning techniques are lowering the barrier to LLM experimentation for developers with limited infrastructure.

0
ProgrammingDEV Community ·

435 Directory Submissions Reveal What Launch Guides Never Tell You

A software team tracked every detail from 435 directory and launch platform submissions made across multiple product launches, publishing findings in September 2026. More than half of directories required a badge or backlink on the submitter's site before granting a listing or a followed link, making footer space a practical pre-launch necessity. Three out of four submissions also required creating an account before the form was even accessible, adding significant hidden time to each entry. Of listings that went live, 106 out of 150 carried followed links — better than expected, but the team cautions that link attributes can change and should be verified directly on live pages. Based on these insights, the team built a tailored launch checklist tool covering 47 core items across eight phases, with additional items that appear only for the specific product type being launched.

0
ProgrammingDEV Community ·

Strategy Pattern in PHP and Laravel: A Fix for Bloated if-else Logic

As Laravel applications grow, shipping calculators and similar features often devolve into deeply nested if-else blocks that become hard to read, test, and extend. The Strategy Pattern addresses this by extracting each algorithm or behavior variant into its own dedicated class behind a shared interface. This approach allows behaviors to be swapped at runtime without modifying existing code, upholding the Open/Closed Principle. A shipping calculator spanning multiple countries, methods, and discount tiers can produce hundreds of conditional combinations, all of which the pattern helps isolate and manage. The GPS navigation system serves as a practical analogy, where each route type becomes its own strategy class rather than a branch in a monolithic function.

0
ProgrammingDEV Community ·

Debouncing Explained: How Developers Prevent Code From Running Too Often

Debouncing is a programming technique that delays the execution of a function until a specified period of inactivity has passed since its last trigger. It is commonly used in web development to handle high-frequency user actions, such as typing in a search bar or resizing a browser window. Without debouncing, an application might fire a server request on every single keystroke, straining infrastructure and wasting bandwidth. A simple JavaScript implementation uses setTimeout and clearTimeout to reset a timer each time the function is called, executing the task only after the user pauses. The core principle is not about reducing work, but about timing it correctly to align system responses with actual user intent.

0
ProgrammingDEV Community ·

Minke: Open-Source Desktop Workspace Unifies AI Agent, Files, and Terminal

Developer lencx, known for creating a popular open-source ChatGPT desktop client, has released Minke, a local-first desktop workspace designed to streamline AI agent workflows. The Electron-based app integrates conversations, project files, terminals, and browser tabs into a single environment, addressing the fragmented context problem developers face when working with coding agents. Minke runs on DeepSeek Harness but is not locked to it, and all workspace data remains on the user's machine with no cloud dependency. The project is independently developed and not affiliated with DeepSeek, currently carrying 637 GitHub stars and an Apache-2.0 license. It remains under active development, and the README cautions that features and data schemas may still change significantly.

0
ProgrammingDEV Community ·

Developer builds browser-only MOV to MP4 converter that never uploads your file

A developer has released movconverter, an open-source TypeScript library that converts MOV files to MP4 entirely within the browser, with no server uploads or file size restrictions. The tool exploits the fact that MOV and MP4 share the same underlying file format ancestry, meaning iPhone and Mac footage — already encoded in compatible H.264/HEVC and AAC formats — can be converted by rewriting metadata rather than re-encoding media. For less common cases involving PCM audio or ProRes video, the library falls back to WebCodecs or lazily loaded WebAssembly for transcoding. A free web interface is available at movtomp4.net, where users can drop in a file and complete the conversion locally without leaving the browser tab. The library also performs a preflight check before conversion, informing users in advance whether their file will be processed losslessly in seconds or require a slower audio transcode.

← NewerPage 1288 of 3251Older →