SShortSingh.
0
ProgrammingDEV Community ·

SoundScript Library Lets C# Developers Generate MIDI and WAV from One Definition

SoundScript is a C# library targeting .NET 10 that allows developers to generate both MIDI and WAV audio files from a single high-level musical description. Rather than manually constructing MIDI events, timestamps, and velocities, developers write a compact script defining tempo, instruments, notes, and dynamics. A single call to SoundScriptEngine.Compile() produces an object that can render both file formats independently. The library is positioned as a higher-level abstraction above traditional MIDI libraries like DryWetMIDI, which remain better suited for DAWs, hardware integration, or direct MIDI manipulation. For larger projects, SoundScript also supports loading musical definitions from external .ss files, keeping audio logic separate from application code.

0
ProgrammingDEV Community ·

Beyond Prompt Injection: 4 OWASP Agent Security Risks Most Teams Overlook

While prompt injection dominates AI security discussions, the OWASP Top 10 for LLM Applications 2025 lists nine additional vulnerabilities that pose serious risks to AI agent deployments. Among the most critical is Excessive Agency, where agents are granted unnecessary capabilities, overly broad permissions, or allowed to take high-impact actions without human verification — often by default rather than deliberate design. Improper Output Handling is another underappreciated risk, occurring when an agent's text output is passed directly into queries, shell commands, or config files without validation, requiring no external attacker to cause harm. Security experts argue these architecture and permission-level flaws are the ones that actually cost businesses money, since they cannot be solved simply by upgrading to a better AI model. Organizations are advised to scope agent permissions tightly to each specific role and enforce authorization checks in downstream systems rather than relying on the language model itself as an access control layer.

0
ProgrammingDEV Community ·

Amazon ECS Express Mode Emerges as Alternative After AWS App Runner Deprecation

AWS has deprecated App Runner, blocking new service creation and pushing developers toward alternatives like Amazon ECS Express Mode. A developer on DEV Community has published a hands-on guide exploring ECS Express Mode as a simpler entry point into Amazon ECS, which traditionally requires extensive manual setup. The tutorial walks through building a .NET 10 Web API, containerising it, and publishing the image to GitHub Container Registry via GitHub Actions CI/CD. Infrastructure provisioning is handled using Terraform with the AWS provider targeting the us-east-1 region. The guide is aimed at AWS beginners looking for a manageable way to deploy containerised applications following App Runner's end of support.

0
IndiaTimes of India ·

Pakistan loses nearly 1,000 security personnel to violence in nine months

Pakistan has recorded over 1,000 security personnel deaths and more than 650 civilian fatalities between January and September this year. The violence is concentrated primarily in Baluchistan and Khyber Pakhtunkhwa provinces. Militant activity has escalated sharply since 2022, a trend linked to the Taliban's takeover of neighboring Afghanistan. The Tehreek-e-Taliban Pakistan, a key militant group, aims to merge Pashtun-majority regions and impose Sharia law. The rising death toll signals a deepening security crisis for the Pakistani state.

0
ProgrammingDEV Community ·

Developer Finds Wall-Clock Bug in Python Poller After 48-Hour Production Incident

A software developer spent 48 hours debugging a Python polling service that passed health checks locally but failed in production after deployment. The root cause was a deadline anchored to time.time(), a wall clock susceptible to NTP corrections and hypervisor pauses, rather than a stable monotonic clock. The developer refactored the wait_until helper to accept an injectable Clock abstraction, separating wall time from monotonic time. A FakeClock test fixture was built to simulate clock jumps deterministically inside pytest, eliminating the need to wait for real NTP events to reproduce the bug. The incident highlights why timeout logic should rely on monotonic clocks and be tested with controllable fake clocks rather than real system time.

0
IndiaTimes of India ·

California allocates $42M to preserve 2,060-acre Wild Cherry Canyon as nature reserve

California has approved a $42 million grant to protect Wild Cherry Canyon, a 2,060-acre coastal area, from future development. The funding will facilitate the transformation of the site into a dedicated nature preserve. Conservation efforts will focus on habitat restoration to maintain the area's ecological value. Tribal communities will partner in the stewardship and management of the canyon. The preserve will also be open to visitors, balancing conservation with public access.

0
ProgrammingDEV Community ·

Developer hits Bybit's 20 partial TP/SL order cap while automating TradingView signals

A developer building a TradingView-to-Bybit automation system discovered that Bybit's Partial TP/SL mode, designed to attach stop-loss and take-profit orders to portions of a position, caps out at 20 such orders per position. The system was engineered so that each individual TradingView entry signal received its own independent TP/SL protection, preserving separate risk logic for every setup. This approach worked correctly until the 21st entry triggered a Bybit API error code 110061, flatly refusing any further partial TP/SL orders. Switching to a single Full TP/SL on the entire position would simplify execution but would collapse all individual entry risk levels into one average-price-based exit, defeating the original design goal. The developer concluded that neither available mode fully satisfies the requirement once the number of concurrent setups exceeds Bybit's 20-order limit.

0
IndiaTimes of India ·

HAL delivers Tejas trainers, HTT-40 aircraft and Dhruv helicopters to IAF, Pawan Hans

Hindustan Aeronautics Limited has handed over Tejas twin-seater trainer aircraft and HTT-40 basic trainers to the Indian Air Force, alongside Dhruv Next Generation helicopters to Pawan Hans Limited. The deliveries represent a notable milestone in India's push toward self-reliance in the aerospace sector. The HTT-40 aircraft are intended to support early-stage pilot training, while the twin-seat Tejas variants will be used for advanced type-conversion training. Together, these handovers strengthen the IAF's indigenous training fleet across multiple skill levels.

0
ProgrammingDEV Community ·

Five PATH Myths That Break CI Agents and How to Fix Them

CI and automation agents frequently fail to inherit the same PATH environment as a developer's local machine, causing tool resolution errors on scratch or remote hosts. Common misconceptions include trusting the output of 'which', assuming version manager hooks like nvm are active, and believing a successful install persists across separate shell sessions. Each agent command may launch a cold shell, meaning PATH must be explicitly set and verified at the start of every step rather than assumed from prior context. Bash also caches binary locations in a hash table, which can cause stale lookups even after PATH is updated, making 'hash -r' a necessary step after any PATH mutation. The recommended approach involves printing PATH explicitly, using 'command -v' and 'type -a' for verification, exporting install directories in the same session, and confirming binary identity via checksum rather than relying on version output alone.

0
IndiaTimes of India ·

Handless accident survivor rebuilds life, returns to driving with family's support

Avinash Rathod lost both his hands in a serious construction site accident, leaving his future uncertain. His wife's unwavering support played a crucial role in helping him through his recovery. Through persistent rehabilitation efforts, Rathod regained his ability to walk and eventually secured work as a driver. He has also resumed participation in Ganpati celebrations, reflecting his renewed sense of purpose. His journey stands as a testament to resilience and the strength found in family support.

0
IndiaTimes of India ·

Bills Explore Brandin Cooks as DJ Moore Injury Leaves Receiver Spot Open

The Buffalo Bills are dealing with offensive uncertainty after wide receiver DJ Moore suffered an injury during the opening game at their new stadium. Former NFL cornerback Darius Butler has suggested that veteran receiver Brandin Cooks could be a potential addition to the roster. Cooks, who is reportedly willing to return to the NFL following a visit with another team, is familiar with the Bills' offensive system. Moore's absence is expected to have a notable impact on Buffalo's passing game and overall offensive effectiveness.

0
IndiaTimes of India ·

Chandigarh Influencer to Give Away 10 iPhone 17s With a Daily Devotional Condition

Social media personality Raja D King has announced a public iPhone giveaway event scheduled for September 22 in Chandigarh. Selected participants from Chandigarh and Mohali will be gifted iPhone 17 models as part of the initiative. To remain eligible, winners are required to write the phrase 'Jai Mata Di' every day until they receive their devices. The event, dubbed 'iPhone Langar', follows an earlier petrol giveaway event by Raja D King that had been postponed. He has also announced plans to extend the giveaway campaign to ten additional cities across Punjab.

← NewerPage 1343 of 5741Older →