SShortSingh.

Programming

0
ProgrammingDEV Community ·

SQL Window Functions Explained: Aggregate Data Without Losing Individual Rows

SQL window functions allow users to perform calculations across related rows while still retaining each individual row in the result set, unlike GROUP BY which collapses rows into summaries. The key component is the OVER() clause, which instructs SQL to apply an aggregate function — such as AVG() — across a defined set of rows without merging them. Adding PARTITION BY inside OVER() lets users further segment calculations by a specific column, such as department, enabling per-group metrics like average salary to appear alongside every employee record. This makes window functions especially useful when a query needs both individual-level data and group-level statistics simultaneously. Common use cases include comparing an employee's salary to their department average, ranking scores, and calculating running totals.

0
ProgrammingHacker News ·

Capsule bundles HTML apps and SQLite data into a single portable file

A developer has released Capsule, a Rust-based desktop app built with Tauri 2.0 that packages an HTML application and all its associated data into one SQLite file. The tool addresses the challenge of storing and sharing web app data without requiring external hosting. User data can be managed through a localStorage-style key/value store or a MongoDB-inspired document API, with support for exporting to CSV or JSON. Privacy is a core design principle, with documents restricted from file system access and requiring explicit permission to reach the internet. The developer plans to open the file format specification with version 1.0 so third-party apps can read and write Capsule files.

0
ProgrammingHacker News ·

Ordewell: Open-Source Tool Breaks Down Goals Into Coding-Agent Task Plans

A developer has released Ordewell, an open-source tool shared on Hacker News. The project aims to convert a single high-level goal into a structured, ordered sequence of tasks designed for coding agents. The tool is hosted on GitHub and appears targeted at developers working with AI-assisted coding workflows. At the time of reporting, the submission had received 6 points and no comments on Hacker News.

0
ProgrammingHacker News ·

Australia pursues stronger EU ties, aligning with Canada's diplomatic approach

Australia is actively seeking a deeper alliance with the European Union, positioning itself alongside Canada in this diplomatic effort. Both nations appear to share a similar strategic outlook as they work to strengthen ties with the EU. This development reflects a broader trend of like-minded democracies reinforcing multilateral partnerships. The move signals Australia's intent to expand its international alliances beyond its traditional partners in the Indo-Pacific region.

0
ProgrammingHacker News ·

Blog Post Explores the Surprising Scale of Factorial Numbers

A technical blog post published on eli.thegreenplace.net examines the magnitude of factorial numbers and how quickly they grow. The article has gained traction on Hacker News, accumulating 70 points and 30 comments. The post dives into the mathematical properties that make factorials grow so rapidly compared to other common functions. It appears to offer an accessible yet rigorous look at a topic relevant to mathematics, computer science, and algorithm analysis.

0
ProgrammingDEV Community ·

How a Dev Team Found Four Monitoring Alerts That Could Never Actually Fire

A development team spent a week auditing their alerting system and discovered four alerts that were structurally incapable of triggering, even when the conditions they were designed to detect occurred. One Prometheus alert for a missing scheduled task used a greater-than-zero filter, making it blind to complete task absence since zero is not greater than zero. A second alert failed silently because an unrouted backend metrics path was intercepted by a reverse proxy, which returned a 200 HTTP response with frontend HTML instead of a 404, causing curl and grep checks to pass without error. On the opposite end, a false-positive alert was paging engineers over failed end-to-end test runs that had actually passed, with the job-level failure caused only by an artifact upload timeout unrelated to test outcomes.

0
ProgrammingHacker News ·

Developer repurposes $20 4G hotspot into a functional SMS texting device

A developer shared a personal project on Hacker News detailing how they converted an inexpensive $20 4G wireless hotspot into a texting device. The project was documented and published on a personal GitHub page. The hack involves interfacing with the hotspot's modem capabilities to enable SMS functionality not originally intended by the device. The post attracted community attention on Hacker News, garnering points and comments from interested readers. The project highlights how low-cost consumer hardware can be repurposed through software and hardware experimentation.

0
ProgrammingDEV Community ·

Redundant Test Proved Critical When Ninth Code Variant Exposed a Coverage Gap

A software developer testing an order-filter function found that a repeated-status check appeared unnecessary across eight flawed implementations, as other tests already caught those failures. When a ninth implementation was added — one that substituted an identity check with a truthiness test — only the seemingly redundant test detected the bug. The issue stems from Python treating both None and an empty list as falsy, causing the function to incorrectly return all orders when an empty filter is passed. Mutation testing tool mutmut, run on CPython 3.14.6, never automatically generated the critical truthiness-substitution variant, meaning the gap only surfaced when the candidate was added manually. The developer has published all code, mutation diffs, and test results on GitHub, noting the findings are specific to this fixture and should not be generalised to broader mutation testing scenarios.

0
ProgrammingDEV Community ·

How a 3-requests-per-hour API limit teaches smarter development practices

A developer working with The Coin Analysis public price API's strict free tier — capped at three requests per hour — documented key lessons in efficient API usage. The core insight was to batch requests rather than loop through individual items, using pagination parameters to fetch up to 220 tokens in a single call. Caching responses on a server or edge function and reading from that cache instead of hitting the API repeatedly helps stay within tight rate limits. The developer also implemented per-route cooldown logic to handle 429 rate-limit errors without wasting remaining quota. The experience highlighted that constraints like minimal free tiers can enforce good engineering habits around batching, caching, and key security.

0
ProgrammingDEV Community ·

Tutorial Explains Why Transformers Need Position Embeddings With Tiny Hands-On Model

A DEV Community tutorial extends a previous notebook on a minimal hand-constructed transformer by introducing the word 'disobeys', which makes token order matter for the first time. The updated model adds an extra layer, a residual connection, and a 22-bit residual stream to carry both original inputs and each layer's findings forward. Position information is embedded directly into each token to help the model determine which word 'disobeys' modifies. The hand-built approach is intentionally simplified to illustrate why positional embeddings and residual connections exist, rather than to reflect production-ready implementations. In real-world transformers, both vector and position embeddings are typically learned through gradient descent during training.

0
ProgrammingDEV Community ·

Step-by-Step Guide: Promoting a Server to Domain Controller and Configuring AD Sites

A technical walkthrough details how to promote a member server, TAILWIND-MBR1, to a domain controller within the TAILWINDTRADERS domain using the Active Directory Domain Services Configuration Wizard. The process involves installing the AD DS role via Server Manager and configuring the server to join an existing domain named tailwindtraders.internal. Following promotion, the RID Master FSMO role is transferred from TAILWIND-DC1 to TAILWIND-MBR1 using the Active Directory Users and Computers console. Additionally, a new Active Directory site named Sydney is created on TAILWIND-DC1 and linked to the default IP site link. The guide covers subnet association with the new site as part of broader Active Directory infrastructure management.

0
ProgrammingDEV Community ·

Developer builds Kubernetes upgrade-readiness tool after deep-reading changelogs 1.32–1.37

A developer building a Kubernetes upgrade-readiness tool spent most of a weekend carefully reading all changelogs from versions 1.32 to 1.37, including patch releases, after a production cluster hit an unexpected issue on 1.33. By scripting an extractor against the kubernetes/kubernetes repository, they identified 36 changelog files covering sections such as Urgent Upgrade Notes, Deprecations, and API Changes. The deep-read surfaced several non-obvious findings, including that version 1.30 has zero Urgent Upgrade Notes and that some of 1.34's most critical breaking changes are buried under an inconspicuous heading. The exercise also revealed that dependent add-ons like CoreDNS, Istio, and Karpenter carry their own upgrade obligations not always reflected in Kubernetes release notes. The resulting open-source tool, kube-upgrade-check, is available on GitHub and flagged 31 additional items the developer missed on a first pass.

0
ProgrammingDEV Community ·

Developer Builds WeavePort to Run Python and TypeScript Plugins Inside C# Apps

A developer has released WeavePort, an open-source plugin runtime for .NET, designed to let C# applications call code written in Python or TypeScript without requiring full rewrites. The tool addresses the maintenance burden of porting external scripts by keeping capabilities in their original languages while the host application controls workflow and data access. A demonstration called Decision Room shows how equivalent C# and Python scoring strategies produce identical results when evaluating improvement proposals, with outcomes changing only when strategy logic is altered. The runtime handles cross-process communication, versioning, and input/output stability, meaning implementation changes do not disrupt the broader system. WeavePort is intended to let teams contribute code in their preferred language while a central application manages execution boundaries and business logic.

0
ProgrammingDEV Community ·

Developer builds tool to stop Claude Code loading all skills at once, saving tokens

A developer noticed that Claude Code sessions were slowing down and consuming thousands of tokens at startup because every installed skill's description was being loaded into the system prompt regardless of relevance. To fix this, they built an open-source tool called 'master-of' that organizes skills behind domain-specific gates — such as design, development, or research — so only the skills relevant to a given task are loaded. A session-start hook automatically flags newly installed skills for sorting, and a check-skills command lets users see which skills are gated and estimate token savings. Plugin changes only take effect on restart, ensuring users remain in control of any modifications. The tool is MIT licensed, requires Bun or Node 22.6+, and is available on GitHub at devrudals/master-of.

0
ProgrammingDEV Community ·

Developer Builds Framework-Free Node.js API to Understand What AI-Generated Code Actually Does

A developer has launched Nexus API, a personal open-source project built using native Node.js capabilities rather than popular frameworks like Express or NestJS. The project was motivated by a growing concern that AI code-generation tools are producing fast results without ensuring developers understand the underlying mechanics. Rather than relying on AI to write and run code directly, the author uses it as a supplementary tool after first attempting problems independently. The project explores foundational concepts such as raw HTTP handling, manual routing, dependency injection, and layered architecture without framework abstractions. The goal is not to replace modern frameworks but to make using them a fully informed, conscious engineering decision.

0
ProgrammingDEV Community ·

Why iptables Shows No Rules After Switching Kubernetes to Cilium

When Kubernetes clusters migrate from kube-proxy to Cilium with kube-proxy replacement mode enabled, the familiar iptables KUBE-SERVICES chain disappears entirely from nodes. This happens because Cilium, a CNI plugin, takes over Service forwarding duties that kube-proxy previously handled by writing rules into the Linux kernel's netfilter/iptables framework. Instead of iptables, Cilium stores and enforces Service forwarding rules using eBPF programs loaded directly into the kernel, which standard iptables commands cannot read. As a result, tools like iptables-save, tcpdump on a ClusterIP, and conntrack return empty or misleading output even when Services are fully functional. Operators troubleshooting connectivity in Cilium-managed clusters must switch to Cilium-specific inspection tools rather than relying on traditional iptables-based diagnostics.

0
ProgrammingDEV Community ·

How to Import Existing AWS Accounts, Including Management, Into AFT Without Starting Fresh

A developer who inherited nine manually created AWS accounts documented how to adopt Account Factory for Terraform (AFT) on top of an already-live Control Tower environment, rather than starting from a clean slate. The process works by submitting an account request file with a matching email address, prompting AFT to recognise the existing account instead of creating a new one, then building out its pipeline downstream. Six standard workload accounts onboarded without issue, but key pitfalls include ensuring the account email matches AWS Organizations rather than Service Catalog, and understanding that only changes to control_tower_parameters trigger re-provisioning. Contrary to advice reportedly given by AWS Support, the Control Tower management account is not unsupported — it is explicitly enumerated as a shared account in AFT's own source code via shared_account.py. The author notes this capability has existed since AFT version 1.3.3, released in February 2022, but remains largely undocumented.

0
ProgrammingDEV Community ·

Critical Vite Flaw CVE-2026-39364 Exploited in Mass Scan for Cloud Credentials

F5 Labs recorded roughly 32,000 scanning events in August 2026 targeting exposed Vite development servers running versions 7.x and 8.x, with attackers probing for cloud credentials stored in .env files. The critical vulnerability CVE-2026-39364 allows unauthenticated attackers to bypass Vite's server.fs.deny restrictions and retrieve sensitive files via specially crafted HTTP requests, requiring no user interaction. Targets include development servers publicly reachable on ports such as 5173/TCP, where stolen AWS or Azure credentials could enable full cloud environment takeover. Vite has released patched versions 7.3.2 and 8.0.5, and administrators are urged to update immediately. As a further precaution, development servers should be restricted to localhost or internal networks, since changing ports alone is not considered a sufficient mitigation.

0
ProgrammingDEV Community ·

Reviactyl Launches as Open-Source Alternative to Pterodactyl Game Server Panel

Reviactyl is a newly released open-source game server management panel designed as an alternative to the widely used Pterodactyl platform. The project aims to retain familiar features such as server management, file manager, console access, and Docker-based environments, while offering a more modern user interface. It targets individual server owners, developers, communities, and hosting providers who manage multiple servers from a single dashboard. The source code is publicly available on GitHub, allowing users to fork, modify, and contribute to the project. Reviactyl does not seek to overhaul how game hosting panels work, but instead focuses on improving the overall user experience and customization options.

← NewerPage 1232 of 3228Older →