SShortSingh.

Programming

0
ProgrammingDEV Community ·

How to Query Stellar's Horizon API Using Python and JavaScript

Developer André Dias Moreira Prol has shared a practical guide on querying the Stellar blockchain's Horizon REST API using Python and JavaScript, drawing on his experience with tokenization and digital forensics projects. Horizon exposes account, transaction, asset, and operation data in JSON format, with built-in HAL-standard pagination that simplifies large-scale data retrieval. In Python, the requests library or the official stellar-sdk can be used to fetch balances and asset records, while JavaScript developers can leverage fetch and Server-Sent Events for real-time payment streaming. Prol notes that SSE-based streaming eliminated the need for constant polling in a digital wallet project, cutting infrastructure costs by around 30%. He emphasizes that Horizon handles read operations only, and transaction submission still requires local signing via an SDK before posting to the /transactions endpoint.

0
ProgrammingDEV Community ·

Developer Builds Real-Time Public Transport Map Covering All of Netherlands

A developer has launched OVspot, a real-time public transport map that displays trains, buses, trams, and ferries across the Netherlands in a single interface. Unlike journey-planning apps, OVspot focuses on visualising what is actively happening across the entire Dutch transport network. A key technical challenge was that not all operators provide GPS data, so the platform uses GTFS timetable data to mathematically interpolate estimated vehicle positions, including for ferry services to the Wadden Islands. OVspot clearly distinguishes between live GPS positions, estimated positions, and timetable-based positions to avoid implying false certainty to users. The project also required significant performance optimisation to smoothly render hundreds of moving vehicles with real-time updates on a single map.

0
ProgrammingDEV Community ·

GitHub Copilot's Usage-Based Billing Leaves Developers With Hundreds in Surprise Charges

A GitHub Community discussion sparked by user @lhfei, who received a $548.99 bill for August 2026, has highlighted serious financial risks tied to GitHub Copilot's usage-based billing model. The user was on Copilot Pro Plus and later Copilot Max during the billing period, and while a spending budget feature exists, it is not enabled by default and can be silently deleted, leaving accounts exposed to uncapped charges. Copilot's agentic mode compounds the problem by consuming 10 to 20 times more tokens than standard autocomplete, driving up costs far beyond what many users anticipate. The issue extends beyond individual developers, with community members reporting monthly bills ranging from $750 to $3,000, and one 80-person company finding its Copilot spend equivalent to a full-time engineer's annual salary. Critics argue that inadequate communication around billing defaults and the absence of higher-tier individual plans leave power users with no affordable path forward.

0
ProgrammingDEV Community ·

GitHub Actions Scheduled Workflows Silently Skip Triggers, Community Flags Reliability Gap

A GitHub Community discussion (thread #207247) raised concerns after a user's hourly scheduled workflow stopped triggering entirely, with no run records created despite the cron job being correctly configured. Manual workflow_dispatch runs completed without issue, confirming the problem lay with GitHub's scheduler itself rather than the workflow logic. GitHub's own documentation acknowledges that scheduled events are handled on a 'best-effort' basis and can be delayed or dropped under high load, especially near the top of the hour. However, five or more consecutive missed hourly triggers go beyond typical delays, pointing to a deeper scheduler-level failure. The community recommended diagnostic steps including using the GitHub CLI to inspect workflow state, reviewing recent scheduled runs, and toggling the workflow off and on to force re-registration with GitHub's scheduler.

0
ProgrammingDEV Community ·

European Startups Tackle AI Data Center Energy Use With Cooling and Heat Reuse

Europe's rapid AI data center expansion is driving significant increases in power consumption, prompting startups to develop practical energy efficiency solutions. Companies like EkkoSense are deploying cooling optimization technology, reporting around 15% energy savings at Virgin Media O2 sites, while Telefónica Germany is using AI-powered digital twins to fine-tune facility cooling. GridBeyond has installed battery energy storage systems at Keppel DC REIT data centers in Ireland, helping sites manage electricity demand and reduce carbon intensity. Meanwhile, Deep Green is repurposing waste heat from computing equipment to supply swimming pools and district heating networks. These approaches across cooling, energy management, and heat reuse reflect a broader shift in treating data center energy as an optimizable resource rather than a fixed operating cost.

0
ProgrammingDEV Community ·

How to Restore Original Dates and GPS Data to Exported Snapchat Memories

When users export their Snapchat Memories via the My Data tool at accounts.snapchat.com, the downloaded photos and videos lose their original capture dates and location data. This happens because Snapchat stores timestamps in a sidecar JSON file rather than embedding them in the EXIF fields that apps like Google Photos and Apple Photos actually read. The correct capture time, formatted as a UTC timestamp, is present in the export's memories_history.json file but must be manually written into each media file's metadata. For JPEGs, the relevant fields are DateTimeOriginal and CreateDate, while MP4 files require updating QuickTime atoms such as mvhd and mdhd. Users can fix this mismatch using a free command-line tool called ExifTool, which reads the JSON timestamps and writes them directly into the correct metadata fields of each photo or video.

0
ProgrammingDEV Community ·

Eight edge cases developers hit when auto-saving Chrome extension data to Downloads

Developers building TabBunker, an open-source tab manager for Chrome, Edge, and Firefox, documented eight technical pitfalls encountered while implementing automatic JSON backups to the user's Downloads folder under Manifest V3. The project was motivated by Chrome's built-in behavior of wiping extension local storage upon uninstall, which can erase all saved data without warning. A key compatibility issue arose because Chrome MV3 service workers lack URL.createObjectURL, forcing the team to use data: URLs there, while Firefox rejected data: URLs and required Blob URLs instead. The team also found that using conflictAction: 'overwrite' correctly replaces files on disk but still appends entries to the browser's download history, requiring explicit history cleanup via the downloads.erase API. Tests on Chrome for Testing 153 and Firefox 155 in September 2026 confirmed that even 64 MB JSON files transferred successfully, eliminating concerns about data-size limits on the data: URL path.

0
ProgrammingHacker News ·

Developer launches offline Android health dashboard aggregating Health Connect data

A developer has released Hamilton, a paid Android app that consolidates fitness and health data from multiple sources into a single dashboard using Google's Health Connect platform. The app addresses a common problem where data from different fitness devices and apps remains fragmented or double-counted across separate applications. Hamilton displays over 30 health metrics, allows users to overlay and compare data on charts, and lets them choose preferred data sources to prevent duplication. The app has no internet permission, meaning it cannot transmit or delete user data, and requires a one-time payment of approximately £3.59 with no subscription fees. It is available on the Google Play Store and was named after the developer's dog.

0
ProgrammingHacker News ·

Opinion: The Crab Chair Wheelchair Design Nobody Wanted

A commentary piece published on New Mobility questions the development of an unconventional wheelchair concept dubbed the 'Crab Chair.' The article appears to critique the design from the perspective of the disability and mobility aid community. The piece raises concerns about whether such innovations genuinely address the needs of wheelchair users or are driven by outside interests. It garnered modest engagement on Hacker News, accumulating 7 points and 5 comments. The title suggests a disconnect between designer intent and actual user demand within the adaptive mobility space.

0
ProgrammingDEV Community ·

Splitting vision AI into two calls improves screen assistant accuracy and reliability

Developer of Handrail, an open-source screen assistant, found that asking a vision model to simultaneously answer a question and identify UI coordinates in a single API call degraded performance on both tasks. The app now makes two separate calls against the same screenshot: one for reasoning and answering, and another focused solely on locating the relevant on-screen control. Coordinates are returned on a normalised 0–1000 grid rather than raw pixels, eliminating resolution and multi-monitor arithmetic across different hardware setups. The two passes also use different image formats — a compressed JPEG for reading and a full-resolution PNG for precise localisation of small UI elements. Handrail runs locally with no account or server, stores data as plain JSON, and is available as an Apache-2.0 open-source project for Windows and macOS.

0
ProgrammingDEV Community ·

How to Monitor HPE Morpheus HVM and HKS Clusters in Existing Grafana Dashboards

Teams running HPE Morpheus Enterprise can now integrate HVM cluster, HKS Kubernetes cluster, and appliance health metrics directly into their existing Grafana dashboards without installing agents or writing custom exporters. The setup relies solely on the Morpheus REST API, a read-only service account, the Infinity data source plugin for Grafana, and the Prometheus instance already running inside HKS clusters. A dedicated read-only role called 'Grafana Reader' is created in Morpheus with minimal permissions covering operations, infrastructure, health, and monitoring sections. To avoid monthly token expiry causing dashboard outages, a custom OAuth client is configured with a one-year token validity period tied exclusively to the service account. The entire setup, covering Morpheus Enterprise 9.0.2 and Grafana 13.2 with the Infinity plugin, can be completed in approximately one hour by anyone with admin access to both platforms.

0
ProgrammingDEV Community ·

Nearly Half of 1,064 Freelance Listings Open With the Wrong First Sentence

An analysis of 1,064 independent sellers' cards across nine categories found that 497 opened by describing the seller's method rather than addressing the buyer's specific situation. The review, covering 863 distinct people with prices ranging from free to $200, also found that 262 listings included no public examples of past work. Cards that led with the word 'free' were among the least clear, despite the assumption that low-cost entry attracts buyers. The core finding is that strangers browsing such listings are typically mid-task and searching for a solution to an immediate problem, not shopping by category. Listings that open with a concrete example or outcome were found to be more effective than those leading with tools, techniques, or pricing.

0
ProgrammingDEV Community ·

What Is CORS and Why Does Your Browser Block Cross-Origin API Requests?

CORS, or Cross-Origin Resource Sharing, is a browser security mechanism that restricts web pages from making requests to a different origin — defined by protocol, domain, and port. Browsers enforce this by default to prevent malicious sites from silently accessing sensitive APIs using a user's credentials. Servers must explicitly permit cross-origin requests by returning headers such as Access-Control-Allow-Origin in their responses. In frameworks like ASP.NET Core, developers can configure named CORS policies to whitelist specific frontend origins rather than allowing all origins. A common debugging tip is to check whether a preflight OPTIONS request is failing before the actual request, and to note that tools like Postman bypass browser CORS enforcement entirely.

0
ProgrammingDEV Community ·

Claude, Gemini Models Block All Prompt Injection Attacks; Qwen and DeepSeek Fail Benchmark

A developer submitted a custom benchmark to the DEV x Kaggle Benchmarking Challenge to test how well five large language models resist indirect prompt injection attacks, where malicious instructions are hidden inside tool outputs like emails or search results. The 10-scenario dataset covered tasks such as refund lookups, flight searches, and email triage, with injected instructions disguised under fake-authority labels like 'System Notice' or 'Admin Override'. Claude Sonnet 4.5, Gemini 2.5 Pro, and Gemini 2.5 Flash each resisted all 10 injected instructions, while Qwen3-235B and DeepSeek R1-0528 failed to resist any. Notably, none of the five models explicitly flagged the suspicious instructions to the user, scoring 0/10 on the 'flagged' metric. The benchmark used deterministic substring and regex scoring rather than an AI judge, making results fully reproducible, though the author acknowledges the small sample size limits broader generalization.

0
ProgrammingDEV Community ·

AI Adoption, Not Capability, Is the Real Bottleneck Holding Back Progress

A commentary responding to the 'AI as Normal Technology' thesis argues that technological advancement and real-world adoption operate at fundamentally different speeds, with organizations struggling to keep pace with rapid AI development. The author contends that adoption remains the critical bottleneck, as integrating AI requires changes to processes, responsibilities, and organizational culture, not just access to capable models. In software development, for example, AI has accelerated coding but not overall product development, shifting the challenge from implementation to decision-making about what to build. The piece also highlights that AI adoption will be slower in high-stakes fields like healthcare, law, and finance, where issues of legitimacy and accountability matter as much as reliability. A key concern raised is that AI may accumulate indirect influence over human decisions even without formal authority, blurring the line between human judgment and machine recommendation.

0
ProgrammingDEV Community ·

421M browser-based encoder outperforms 1.5B LLM in agent decision-making tasks

Developer Vishal Mysore built layaAgent, a browser-based AI agent that uses a 421-million-parameter typed-decision model called Laya to handle routine decisions without a server or API key. Laya, built on ModernBERT-large and exported to ONNX for in-browser use, answers only structured yes/no or multiple-choice questions, making its decisions fully inspectable as probability scores. A larger 1.5B-parameter LLM, Qwen2.5-1.5B, is invoked only when Laya's confidence falls below a set threshold, reducing reliance on slower and costlier generative models. In testing, Laya correctly selected tool arguments 71% of the time overall, rising to 90% accuracy for fixed-list arguments, with the extractor supplying the correct span 91% of the time. The project is open-source under the Apache 2.0 license, with a live demo and adjustable confidence thresholds that instantly reroute recorded decisions without rerunning any model.

0
ProgrammingHacker News ·

Developer Voices Frustration Over Constant Connectivity and Network Dependence

A developer published a personal essay expressing exhaustion with the demands of being perpetually connected to the internet. The piece, shared on matduggan.com, reflects growing concerns about how modern technology keeps individuals constantly reachable and online. The article resonated with readers on Hacker News, attracting points and discussion shortly after posting. The author appears to be questioning the personal cost of living in an always-on, networked world. The post contributes to a broader ongoing conversation in tech communities about digital boundaries and connectivity fatigue.

0
ProgrammingDEV Community ·

Developer Builds AI-Friendly Web Component Library With Built-In Assistant Context

A developer has released AWC UI, an MIT-licensed Material Design 3 component library built with Stencil, featuring over 56 components compatible with React, Angular, Vue, Svelte, and plain HTML. The library is designed to address a common problem where AI coding assistants misuse component APIs by shipping machine-readable documentation and component manuals directly inside the npm package. An AI setup command automatically injects documentation references into project instruction files used by tools like Cursor, Claude Code, and GitHub Copilot. The library also includes an optional Model Context Protocol server that lets compatible assistants search and retrieve structured component documentation on demand. The goal is to give AI assistants accurate, version-matched context so they generate correct component usage rather than visually plausible but functionally broken code.

0
ProgrammingDEV Community ·

Pointers Are Just Memory Addresses, Not Arrows: Rethinking C and C++

A widely shared explainer argues that the traditional whiteboard diagram of pointers as arrows between boxes misleads programmers learning C and C++. The article contends that a pointer is simply an integer storing a memory address, much like a house number on a street of numbered byte lockers in RAM. Variable names like 'score' exist only for human readability and vanish entirely once code compiles into machine instructions, leaving the CPU to work solely with numeric addresses. On a 64-bit system, every pointer occupies exactly 8 bytes regardless of the data type it references, because an address is always the same size. The piece suggests that viewing memory this way demystifies pointer arithmetic, array decay, and segmentation faults, recasting the last as a protective operating system feature rather than a random error.

← NewerPage 932 of 3186Older →