SShortSingh.

Programming

0
ProgrammingDEV Community ·

Seven Engineering Lessons from Building a Non-Custodial Crypto Payment System

CRYPT.PE developed a non-custodial crypto checkout where merchant funds flow directly to merchant-controlled wallets, bypassing the payment processor entirely. Unlike custodial systems that hold funds in a platform balance before payout, this wallet-direct model makes payment and settlement a single on-chain event. The team found that network and asset information — such as distinguishing USDT on Tron from USDT on Ethereum — must be treated as primary checkout details, not secondary notes, to prevent irreversible transfer errors. A robust matching engine is also essential, requiring a complete expected-payment record to avoid duplicate invoice matches or replayed transaction hashes. The project highlights that the key question for any crypto payment provider is not whether it supports crypto, but who controls the wallet where the first irreversible payment lands.

0
ProgrammingDEV Community ·

Developer Builds Linux Desktop Pet 'Mochi' While Wrestling With Wayland and GTK Limits

A developer has created Mochi, a small animated desktop companion for Linux built using Python, GTK, Cairo, and hand-drawn pixel art. Mochi reacts to user behaviour — sitting down when the user types, falling asleep during idle periods, and responding physically when dragged across the screen. Inspired by Codex Pets, the project aimed to make a character feel like a natural part of the desktop rather than a conventional application. Building Mochi proved technically challenging because Wayland deliberately restricts global window positioning for security reasons, complicating the free movement a desktop pet requires. The developer describes the process as an ongoing negotiation between desired character behaviour, GTK's toolkit constraints, and what GNOME and Wayland actually permit.

0
ProgrammingDEV Community ·

Kubernetes 1.37 Containerd Support Misinformation Spreads Across Tech Sites

At least three independent technical websites incorrectly reported that Kubernetes 1.37, released on August 26, 2026, dropped support for containerd 1.x, warning that nodes running it would fail to boot. The official Kubernetes changelog (PR #139121, merged May 22, 2026) clearly states this removal was deferred to version 1.38 to align with the end of containerd 1.7's support window. Notably, some of the incorrect sources cited the very changelog that contradicts their own conclusions, suggesting the citation was treated as proof of accuracy without verifying the underlying content. The pattern highlights what the author calls 'Source Interpretation Debt,' where secondary sources preserve the appearance of citing authority while misrepresenting what those sources actually say. The author attributes the spread to competing incentives among release authors, bloggers, SEO-driven guides, and aggregators, rather than deliberate misinformation.

0
ProgrammingDEV Community ·

Developer Debugs AI Agent That Wrote 70 Duplicate Paragraphs Due to Cache Bug

A software engineer discovered that an AI runtime agent he built generated 70 identical paragraphs on a single draft article instead of just one. The root cause was not the AI model itself, but a 60-second read cache that repeatedly served stale data, making the system believe no paragraph had been written after each successful write. The agent's built-in verification rule — which required a read-back confirmation before marking a task complete — inadvertently amplified the bug by looping on false negatives. The engineer, who runs engineering at app platform GoodBarber and operates production AI agents, used the incident to develop a structured debugging framework for probabilistic systems. His framework prioritizes three questions in order: what the system was permitted to get wrong, which layer introduced the error, and how long the error persisted before detection.

0
ProgrammingDEV Community ·

How to Diagnose and Fix JavaScript Memory Leaks in Node.js Applications

Memory leaks in Node.js often manifest as containers running smoothly for roughly 40 minutes before the heap grows steadily, garbage collection intensifies, latency spikes, and the process is killed with OOMKilled. A common misconception is that JavaScript's garbage collector uses reference counting; in reality, V8 uses a mark-and-sweep algorithm that collects any object unreachable from GC roots, making isolated circular references harmless. The V8 heap is generational, and true leaks occur when objects are promoted to old space and never freed, which can be confirmed by monitoring heap size after forced major GC cycles using the --expose-gc flag. If heap usage rises monotonically across multiple samples under steady load, a JavaScript heap leak is confirmed; a stable heap with rising RSS instead points to leaks in native buffers or allocator fragmentation. One of the most frequent causes of leaks in both Node.js and single-page applications is unremoved event listeners, which create strong references from emitters to handlers and everything captured in their scope.

0
ProgrammingDEV Community ·

How to Refresh APX Skills in Dev Without Reinstalling the Package

Developers editing APX skills in a linked checkout may find external coding tools still reading outdated instructions, because editing source files does not automatically update installed skill directories. APX separates its runtime skills (src/core/runtime-skills/) from its bundled catalog (skills/) distributed to external tools, and changes to one do not propagate to consumers of the other. To push updates to external tools' global skill directories, contributors must explicitly run 'apx skills sync --verbose', which reports created, updated, unchanged, and pruned entries per destination. Using 'apx update' is discouraged for this purpose, as it installs a published release and can overwrite the global link to the working development tree. Developers are advised to confirm which file a given tool actually reads and which operation delivers new content there before assuming a sync or file copy has refreshed an active session.

0
ProgrammingDEV Community ·

How to Engineer Production-Ready AI Systems That Survive Real-World Chaos

A technical guide published on DEV Community outlines why AI integrations that perform well in demo environments often fail when deployed to production. The core issues identified are latency, cost inefficiency, and unreliability — problems largely invisible during prototype testing. In production, systems face concurrent user requests, unstructured inputs, and stateful context requirements that a simple API call cannot handle. The article recommends architectural fixes such as decoupling user requests from LLM responses via background queues, implementing error handling, and managing context limits carefully. Engineers are advised to treat the gap between a notebook demo and a live system as a distinct discipline requiring observability, cost controls, and resilience patterns.

0
ProgrammingDEV Community ·

What a startup grant really signals to investors — and what it doesn't

Technical founders who secure grants such as SBIR or NSF funding often treat them as a primary fundraising asset, but investors interpret them more narrowly than founders expect. Grants do provide meaningful signals, including third-party technical validation, non-dilutive capital discipline, and evidence that a founder can handle structured accountability. However, investors are clear that grants do not validate market demand, substitute for revenue or traction, or serve as a standalone valuation lever. The core investor bet remains whether a startup can become a venture-scale business, a question no grant committee is tasked with answering. Founders are advised to use grant recognition as one supporting element in their pitch rather than leading with it as proof of overall startup viability.

0
ProgrammingDEV Community ·

Spring Boot's /actuator/env Sanitizer Can Leak Secrets With Non-Standard Variable Names

Spring Boot's built-in sanitizer for the /actuator/env endpoint masks values only when property names contain keywords like 'password', 'secret', 'token', or 'key'. Variables with unconventional names such as DB_PASS, WEBHOOK_SIGNING, or PARTNER_SHARED_VALUE fall outside these defaults and are exposed in plain text. Enabling authorization controls via 'show-values=when-authorized' addresses who can access the endpoint but does not prevent unmasked secrets from appearing to authorized users. The Spring Boot documentation provides a configurable SanitizingFunction interface to extend masking behavior, but determining which project-specific names to include remains the developer's responsibility. Security gaps most often arise from ad-hoc naming conventions adopted under deadline pressure that are never audited against the sanitizer's pattern list.

0
ProgrammingDEV Community ·

Spring Boot's default env sanitizer may expose secrets that break naming conventions

Spring Boot's /actuator/env endpoint includes a built-in sanitizer that masks property values containing keywords like 'password', 'secret', or 'token', but it only covers names that match those predefined patterns. Teams that use custom variable naming conventions — such as DB_PASS, API_AUTH, or WEBHOOK_SIGNING — may unknowingly expose sensitive values in plain text. The official Spring Boot documentation acknowledges that sanitization behavior is configurable via the SanitizingFunction interface, but leaves the responsibility of defining project-specific patterns to the developer. A common misconception is that restricting access via 'management.endpoint.env.show-values=when-authorized' is sufficient, when in fact it only controls who can view values, not which values remain unmasked. Security incidents most often arise not from misspelled standard keywords but from team-specific naming dialects that were never added to the sanitizer's pattern list.

0
ProgrammingDEV Community ·

Why AI Should Rank Job Candidates But Never Reject Them Autonomously

AI tools are increasingly used in recruitment to parse resumes, rank applicants, and schedule interviews, but experts warn that not all these actions carry equal risk. A framework called LoopRails grades each recruiting action from G1 to G3 based on how reversible it is, how widely harm could spread, and how high the stakes are. Automated resume parsing and interview scheduling rank as low-risk, while candidate scoring carries moderate risk and must remain advisory only. Automatically rejecting applicants without human review is classified as the highest risk, since the outcome is effectively irreversible for the candidate and touches legally regulated fairness concerns. The core principle is that AI should surface, summarize, and rank candidates, while a human retains full accountability for every advance-or-reject decision.

0
ProgrammingDEV Community ·

SQLite Date Format Mismatch Silently Inflated Query Results by 18x

A developer maintaining an independent AI monitoring project discovered that a routine SQLite query counting crawl runs in the last hour returned 1,252 rows when the true figure was only 68. The error stemmed from a silent string comparison mismatch: application code stored timestamps in ISO 8601 format using a 'T' separator, while SQLite's built-in datetime() function produces timestamps with a space instead. Since SQLite has no native date type and compares date strings byte by byte, the 'T' character sorted higher than a space, causing rows from the same day to incorrectly pass the filter regardless of their actual time. The bug never affected shipped production code, which consistently used JavaScript's toISOString() on both sides of comparisons, but it quietly corrupted hand-typed console queries with no error or warning. The fix is straightforward: use strftime('%Y-%m-%dT%H:%M:%SZ', 'now', '-1 hour') to ensure the cutoff string matches the stored format exactly.

0
ProgrammingDEV Community ·

Developer builds real Windows file lock using OS-level ACLs, not app tricks

A developer building a tool called File Guard for ATLOCK found that most Windows file-locking apps rely on hiding or renaming files rather than enforcing true access restrictions. To create genuine protection, they used Windows NTFS Access Control Lists (ACLs), which strip read and write permissions at the operating system level so no application can bypass them. The approach means Windows itself blocks unauthorized access, independent of the locking app's own process. The tool also captures intruder photos or video on failed password attempts using a background thread, keeping the UI responsive and inconspicuous. The developer argues that meaningful file security must be enforced at the OS or filesystem layer, not through app-level password prompts alone.

0
ProgrammingHacker News ·

Developer releases free open-source MacBook folding screen effect inspired by iPhone Duo

A developer has released Foldelight, a free open-source app that brings a folding portal visual effect to MacBook displays. The project was inspired by a similar effect seen on the dual-screen iPhone Duo concept, which the creator felt translated well to a laptop lid. Finding that the only existing app offering this effect was paid, the developer chose to build and release a free alternative. The app was built with assistance from Astra, and the creator has made the source code publicly available. Contributions for visual improvements or new features are welcome from the community.

0
ProgrammingDEV Community ·

LLM Agreement Study Finds Models Echo Their Own Priors, Not Message Content

A small art project encoding sentences as only word-length sequences prompted researchers to test whether large language models could recover intended meaning from that minimal signal. The experiment compared model readings of a true message's length sequence against readings of a different length sequence and against randomly assembled texts, measuring positional agreement across four runs. Results showed that treatment-arm agreement never consistently separated from the prior-control arm across all four runs, suggesting models were converging on shared priors rather than decoding actual message content. An early version of the study contained a methodological flaw where the random-baseline vocabulary was drawn from the control arm's own limited readings, artificially inflating the floor and nearly obscuring the real finding. The corrected conclusion is that when evaluating model self-consistency, the meaningful baseline is the model's own prior output, not random chance.

0
ProgrammingDEV Community ·

Chinese CS Student Reflects on Startup Job That Ended in Dismissal

A software engineering student from China, who goes by ACatNight, has shared reflections on a formative internship at a small startup during their second semester. The student worked on real-world projects and bugs but was eventually let go after making a mistake on the job. Despite the setback, the experience reshaped their understanding of software development, highlighting the importance of system design, collaboration, and handling pressure beyond just writing code. After returning to school, the student resumed personal projects and is currently studying C# .NET backend development and AI applications using tools like ASP.NET Core, Docker, and Redis. They are also rebuilding a side project called StudyTree, an AI-powered learning reflection tool designed to help users identify knowledge gaps and plan what to learn next.

0
ProgrammingDEV Community ·

Solo Developer Shares How a Missing PostgreSQL GRANT Broke Multi-Tenant CRM in Production

A Brazilian solo full-stack developer built FunilChat AI, a multi-tenant WhatsApp CRM with an AI agent designed to handle sensitive customer documents including SSN and tax ID equivalents. The system uses PostgreSQL row-level security to isolate data across multiple business clients within a single database, avoiding the complexity of per-tenant deployments. Months into production, an n8n automation workflow silently failed to create handoff notifications because a database migration had granted INSERT on the notifications table but omitted the required GRANT USAGE and SELECT on the associated sequence. The missing sequence permission prevented auto-generated IDs from being created, and the fix required a follow-up migration to explicitly grant those sequence privileges. The project has been running continuously since April 2026 and now spans 21 tables under row-level security across release 2.21.0.

0
ProgrammingDEV Community ·

How Students Can Make the Most of $100 Azure Cloud Credits

Many students who receive Azure cloud credits tend to spend them on random experiments rather than building meaningful projects, according to a guide published on DEV Community. The article argues that the real value of cloud credits lies in using them to develop portfolio-worthy skills, not simply exploring available services. It recommends seven project categories, ranging from personal portfolio websites and REST APIs to containerized applications using Docker. Each project type is mapped to practical skills such as backend development, database design, cloud deployment, and DevOps workflows. The guide emphasizes that deployed, publicly accessible projects demonstrate engineering ability far more effectively than code that only runs locally.

0
ProgrammingDEV Community ·

Open-Source MCP Server Lets AI Agents Control Android Emulators Autonomously

A developer has released app-automating, an open-source MCP server that enables AI agents to fully control Android devices and emulators without requiring Android Studio or manual interaction. The tool provides 28 functions across three modules covering device lifecycle management, on-screen interaction via Appium, and navigation memory stored in a local SQLite database. Unlike most Android automation tooling, it records every interaction so agents can recall previously mapped routes rather than rediscovering them each time. Built with Python 3.12 and following a Clean Architecture pattern, it is designed as a general-purpose capability layer rather than a dedicated testing framework. Use cases include automated app testing, scraping mobile-only apps, bug reproduction, and handling repetitive on-screen tasks.

← NewerPage 1470 of 3361Older →