SShortSingh.

Programming

0
ProgrammingDEV Community ·

Indonesia's 2024 Ransomware Attack on National Data Center: A Disaster Recovery Case Study

On June 20, 2024, Indonesia's Temporary National Data Center (PDNS) was struck by Brain Cipher ransomware, a variant of LockBit 3.0, crippling the infrastructure managed by the Ministry of Communication and Information Technology. The attack paralyzed over 230 government services and forced airports to revert to manual operations. Attackers demanded an $8 million ransom, and the incident exposed critical gaps in the government's data backup practices. The breach has since been examined as a major case study for building ransomware-resilient disaster recovery systems using cloud-based tools and security frameworks.

0
ProgrammingHacker News ·

Essay explores what a workless world might look like based on existing evidence

An essay published on Asterisk Magazine's Substack argues that we already have clues about what a world without work could resemble. The piece draws on existing real-world evidence rather than speculation to examine the potential social and economic implications of widespread joblessness. The article was shared on Hacker News, where it attracted 10 points. No comments had been posted on the Hacker News thread at the time of submission.

0
ProgrammingDEV Community ·

NPS vs CSAT: How These Two Survey Metrics Serve Different Business Goals

Net Promoter Score (NPS) and Customer Satisfaction Score (CSAT) are two widely used survey metrics that measure fundamentally different things. NPS uses a 0–10 scale to gauge overall brand loyalty and likelihood to recommend, producing a score between -100 and +100. CSAT, typically rated on a 1–5 scale, measures satisfaction with a single interaction — such as a support chat or checkout — and is reported as a percentage of positive responses. While NPS is best suited for tracking long-term relationship health and early churn signals, CSAT delivers faster, narrower feedback on specific product or service touchpoints. Most teams benefit from running both metrics in parallel, as they complement rather than replace each other.

0
ProgrammingDEV Community ·

Von der Leyen Warns Frontier AI Could Enable Unprecedented Cyberattacks

European Commission President Ursula von der Leyen used her 2026 State of the Union address to highlight the cybersecurity dangers posed by advanced AI models, warning they could enable hacking at a scale previously unimaginable. She cautioned that such powerful models could fall into the hands of hostile actors, signaling that AI safety, model security, and supplier accountability will remain central to EU policy. Her remarks did not introduce new legal requirements but reinforced the EU's existing governance direction, including the AI Act framework. The EU is also expected to release a dedicated AI cybersecurity plan in July 2026, addressing both the threats and defensive opportunities that advanced AI presents. Von der Leyen additionally called for international cooperation on model evaluation and early warning systems, with partners including Canada and the UK.

0
ProgrammingDEV Community ·

Build a Free Client Portal Using Google Sheets and Sheetrocket in 30 Minutes

Agencies and freelancers often struggle with scattered email threads and disorganized project updates, making it hard for clients to track progress. A tutorial published on DEV Community outlines how to build a structured client portal using Google Sheets and a free tool called Sheetrocket, requiring no coding or database setup. The portal includes a dashboard, milestone tracker, invoice history, document links, and a messaging form, all accessible to clients via a single private link. Sheetrocket offers ready-made templates for various business types, including agency, freelancer, and coaching portals, which can be connected to a copied Google Sheet template. The entire setup is estimated to take around 30 minutes, with the business owner retaining full control over the data through their own Google account.

0
ProgrammingDEV Community ·

Developer replaces free hit counter API with Firebase after mobile blocking issues

A developer building a static web app called Daily Doodle attempted to add a simple visitor hit counter using a free third-party API, countapi.mileshilliard.com. The counter worked correctly on desktop browsers but consistently failed to update on mobile devices, with no visible error shown to users. Investigation revealed the likely cause was the API's domain being blocked at the network level by ad blockers or mobile carrier filters. Switching to Firebase Realtime Database resolved the issue, as Google's infrastructure domain is rarely blocked by such filters. The developer shared a step-by-step setup using Firebase's REST API with server-side atomic increments, requiring no SDK or authentication under the free Spark plan.

0
ProgrammingDEV Community ·

How One Dev Built a Cheat-Resistant Browser Game Leaderboard with Cloudflare D1

A developer built a browser game called 195-0 Game using Astro, Preact, and Cloudflare Workers, where players draft five people for cabinet roles and run a fictional campaign against 195 nations. A key engineering challenge was making the public leaderboard trustworthy without relying solely on client-reported scores. The solution uses signed draft tokens and server-side move replay: the server reconstructs the game from a seed and action log, then issues a signed result token before any leaderboard submission is accepted. Most content pages are prerendered, keeping the site fast, while the server handles draft issuance, score verification, and shareable PNG result card generation. The developer acknowledges the system validates legal move sequences but cannot confirm human participation, meaning a bot could still submit high scores through valid gameplay paths.

0
ProgrammingDEV Community ·

Cisco Patches Critical Email Gateway Flaw Enabling Root Access via Single Email

Cisco has confirmed active exploitation of CVE-2026-76461, a CVSS 9.8-rated SQL injection vulnerability in the AsyncOS email parsing logic of its Secure Email Gateway appliances. The flaw requires no authentication and can be triggered by a single crafted email, allowing remote attackers to execute commands as root on affected devices. Both physical and virtual appliances running AsyncOS 15.5 and earlier are affected, with fixed versions available across the 15.5, 16.0, and 16.5 release lines. Cisco disclosed the vulnerability on September 15, 2026, and CISA added it to its Known Exploited Vulnerabilities catalog, setting a federal patch deadline of September 17, 2026. No workaround exists, and administrators are advised to upgrade immediately while treating gateway logs as potentially compromised, cross-referencing firewall and network records for signs of intrusion.

0
ProgrammingDEV Community ·

Sentence-Window RAG Technique Improves Retrieval Accuracy Without Large Dependencies

Sentence-window retrieval is a RAG design pattern that separates the unit used for retrieval from the unit used for interpretation, indexing individual sentences while expanding results to include surrounding context. This approach addresses a core trade-off in standard RAG systems, where small chunks improve precision but strip away qualifying information, while large chunks restore context but introduce irrelevant material. A tutorial from Gate of AI demonstrates the technique using only Python's standard library, avoiding unverified third-party dependencies. Research cited in the tutorial found that multi-level chunk retrieval improved AI-evaluated answer correctness by over 25% compared to single-level retrieval in a Glycoscience-paper evaluation. The method is best suited for documents where facts and their qualifications appear in close proximity, and less effective when relevant evidence is scattered across multiple sections or documents.

0
ProgrammingDEV Community ·

PostgreSQL pgvector Graph RAG Tutorial Unifies Vector Search and Graph Traversal

A technical tutorial from Gate of AI outlines a PostgreSQL-native approach to structure-aware Graph Retrieval-Augmented Generation (RAG), addressing limitations of conventional flat vector retrieval. The design stores text chunks with embeddings, a canonical entity graph, and community summaries within a single PostgreSQL database, using pgvector for semantic search and relational edge tables for graph traversal. This consolidation aims to eliminate the need for separate vector, graph, and document store systems, reducing infrastructure complexity and consistency overhead. The approach emphasizes quality gates to reject poor extractions before storage, and explicitly models time to distinguish current, superseded, or negated statements. The tutorial is intended as a design and evaluation guide for engineering teams considering structure-aware RAG rather than a framework- or provider-specific implementation guide.

0
ProgrammingDEV Community ·

Framework Proposes Auditable Human-Agent Collaboration for Support Ticket Triage

A new design framework called the Collaborative Human-Agent Protocol (CHAP) aims to make AI-assisted support ticket triage transparent and accountable. The framework treats agent recommendations as events within a collaborative workflow rather than final decisions, ensuring human judgments and overrides are recorded as structured operational data. It defines clear decision boundaries, separating low-risk agent suggestions from actions that require human authorization. The tutorial is implementation-neutral, meaning engineering teams can apply it across their own choice of platforms, model providers, and identity systems. Its core goal is to give organizations a reliable audit trail showing how work moved through the system and where human judgment was applied.

0
ProgrammingDEV Community ·

How to Build a Python Evaluation Gate for LLM Fine-Tuning Workflows

A new technical tutorial from the Gate of AI series outlines how to build a local, auditable evaluation gate before fine-tuning large language models. The workflow validates JSONL training datasets, fingerprints data, detects holdout overlap, and scores model predictions before approving a model for deployment. The guide emphasizes that completing a training run alone is not sufficient evidence for releasing a model, making a structured release gate an essential engineering control. It is designed to work with the Python standard library only, keeping it provider-agnostic until an organization selects an approved inference path. The tutorial notes that fine-tuning is best suited for stable, measurable tasks and warns against using it as a substitute for real-time data retrieval.

0
ProgrammingDEV Community ·

Reframing the World as an Open-World RPG Can Dissolve Daily Mental Friction

A developer and writer argues that viewing the world as either an arena of competition or a testing ground of judgment creates constant internal tension. In the final article of a series on mindset and method, they propose an alternative lens: treating life like an open-world RPG where goals are self-defined and setbacks are level design rather than verdicts. Under this framework, other people are seen as characters with their own skill trees and behavioral builds shaped by decades of experience, not obstacles to fix or threats to neutralize. This perspective discourages the impulse to change others uninvited, comparing it to grabbing a stranger's controller mid-game. The author contends the shift resolves no concrete problem but eliminates a significant source of friction rooted in feeling targeted by others.

0
ProgrammingDEV Community ·

How HTTP Caching Works: Headers, Freshness, and Validation Explained

HTTP caching allows servers and clients to store and reuse response data, reducing unnecessary data transfers and improving performance despite network overhead. The mechanism relies on two core concepts: freshness, where cached content can be reused before expiry, and validation, where the server confirms whether stale cached content is still current. Key HTTP headers such as Cache-Control, ETag, Last-Modified, and Vary govern how caching behaves across requests and responses. For example, a server can return a 304 Not Modified status instead of resending unchanged content, saving bandwidth. Because HTTP caching is opt-in, even partial implementations can deliver immediate performance gains without requiring full compliance with the specification.

0
ProgrammingDEV Community ·

AI and Bots Drive Surge in Automated API Abuse, Outpacing Basic Defenses

Automated API abuse occurs when bots or scripts flood application programming interfaces with rapid, high-volume requests to steal data, hijack accounts, commit fraud, or exploit weak endpoints. Artificial intelligence has lowered the barrier for attackers by enabling even less-skilled individuals to write attack scripts, analyze API documentation, and adapt tactics quickly. Traditional defenses such as rate limiting and static Web Application Firewalls are increasingly inadequate, as attackers evade them by rotating IP addresses, using real accounts, and pacing requests to stay below detection thresholds. APIs pose heightened risk when they lack strong authentication, over-share data, or go unmonitored — and many organizations maintain forgotten or undocumented APIs that expand their attack surface. Security experts recommend layering bot detection, behavioral monitoring, anomaly detection, API discovery tools, and adaptive rate limiting to keep pace with the evolving threat.

0
ProgrammingDEV Community ·

How to Add Casting to a Custom HTML5 Video Player Using Remote Playback API

A technical tutorial published on DEV Community walks developers through integrating cast functionality into a custom HTML5 video player using the Remote Playback API, with an AirPlay fallback for Safari. The guide explains a critical architectural distinction: when casting, the TV fetches and plays the stream URL independently, meaning custom overlays, quality settings, analytics, and token-refresh logic do not carry over. Developers are shown how to detect cast support across browsers, including Chromium, Safari, and Firefox, using a detection utility that checks for Remote Playback, AirPlay, and Cast SDK availability. The tutorial also addresses four common bugs that cause casting to work on a laptop but fail on an actual TV, covering token expiry, CORS issues on the receiver, unreachable hosts, and mishandling the prompt method. Code examples using hls.js and the Remote Playback API are provided throughout to guide implementation.

0
ProgrammingDEV Community ·

Simba 3.2 TTS Model Hits 100ms Latency at $10 per Million Characters

Coval's AI voice platform has released Simba 3.2, a text-to-speech model priced at $10 per million characters that achieves approximately 100ms time-to-first-audio latency. The model is ranked as the most affordable option in Artificial Analysis' top ten TTS models and holds a 97/100 humanness score on Vapi's Humanness Index. Simba 3.2 focuses on English with expressive delivery, while Simba 3.0 supports German, Spanish, French, Italian, and Brazilian Portuguese at the same latency and price. The update did not alter the underlying model weights or voice quality, but introduced content watermarking to comply with EU regulations on generative media. The legacy Simba 1.6 model will be retired by mid-November, with its additional language support being migrated to Simba 3.0 before that deadline.

0
ProgrammingDEV Community ·

Developer fixes macOS AI app crash by bundling 24 Homebrew dylibs and rewriting paths

A developer building a double-click macOS installer for the open-source DeepSeek Harness AI agent workbench discovered the app crashed instantly on clean Macs with no logs. Using the diagnostic tool otool -L, they found the bundled Node binary was linked to 24 dynamic libraries via absolute Homebrew paths, which did not exist on machines without Homebrew installed. The fix involved recursively scanning the full dependency graph, copying every required dylib into the app bundle, and rewriting all paths to use @loader_path with install_name_tool before re-signing the app. The corrected bundle was also re-signed to satisfy macOS security requirements. The final installer shrank from 792 MB to 620 MB while adding three plugins, and all build scripts have been released as open source.

← NewerPage 1202 of 3226Older →