SShortSingh.
0
ProgrammingDEV Community ·

How Shadow rebuilt its media pipeline using bitemporal PostgreSQL and CIEDE2000 color calibration

Shadow's engineering team overhauled its media synthesis pipeline after persistent color drift problems emerged across 90-minute renders at 24 frames per second. The pipeline stitches four streams per frame — including diffusion, depth, specular, and emissive layers — within a strict 41.66ms per-frame budget. To ensure perceptual accuracy, the team adopted the CIEDE2000 color difference formula, which better matches human vision than standard RGB delta-E, particularly in the blue-gamut range where most emissive overlays appear. Frames are treated as immutable events, enabling a bitemporal data model in PostgreSQL that records both application and system timelines, replacing an earlier Redis Streams setup that struggled with replay and ordering guarantees. This architecture allows engineers to reconstruct exactly what the compositor processed at any given moment, making post-render debugging of perceptual artifacts significantly more reliable.

0
ProgrammingDEV Community ·

How to Generalize Transaction Scope in NestJS Across TypeORM and MongoDB

A common NestJS pattern wraps entire HTTP request handlers in a single database transaction, which works well when only database operations are involved. Problems arise when a use case must call an external service — such as an AI model or payment gateway — before writing to the database, leaving the transaction open for minutes and holding pooled connections and row locks. The article proposes extracting the transaction executor's contract into a small domain-level interface, decoupling transaction control from any specific ORM. This abstraction is validated with two separate implementations — one for PostgreSQL via TypeORM and one for MongoDB — running identical use cases and tests against both. The exercise also highlights which engine-level differences no abstraction can fully hide, offering a practical boundary for how far such a generalization can reliably reach.

0
ProgrammingDEV Community ·

Multi-stage Docker builds cut Node image size from 1 GB to a fraction

Most inherited Node.js Docker images exceed one gigabyte, even though the actual application may occupy only around 40 MB, with the remainder comprising compilers, dev dependencies, npm cache, and source files. This bloat slows deployments, increases security scan times, and widens the attack surface for vulnerabilities. Multi-stage Docker builds address this by using multiple FROM instructions, allowing developers to compile the app in an early stage and copy only the necessary production artifacts into a leaner final image. The final image can be based on a minimal variant like node:20-slim or a distroless image, and should install only production dependencies via npm ci --omit=dev rather than copying node_modules from the build stage. Proper layer ordering — copying lockfiles before source code — also preserves Docker's build cache, keeping repeated builds fast.

0
ProgrammingDEV Community ·

CSS text-box-trim removes phantom text spacing gaps, but developers still ignore it

A native CSS property called text-box-trim, now supported across all modern browsers, automatically removes the invisible spacing embedded in font metrics above and below text characters. For years, developers worked around this issue using negative margins, line-height calculations, and hardcoded values sourced from design files. The property works alongside text-box-edge to align text precisely to the cap height and alphabetic baseline, eliminating the need for manual hacks. Despite its practical utility, the feature remains widely overlooked, partly because existing design systems and codebases were built around the old workarounds. The Syntax Podcast recently highlighted text-box-trim alongside other underused CSS features, bringing it to the attention of a broader developer audience.

0
TechnologyArs Technica ·

ESA to Proceed with Venus Mission Alone After NASA Withdraws Radar Instrument

The European Space Agency (ESA) plans to move forward with its Venus mission independently after NASA decided to pull its radar instrument from the collaboration. The withdrawal is linked to broader budget and policy shifts under the current White House administration, which has been scaling back certain NASA international partnerships. ESA is now exploring alternative options, including a potential collaboration with China, to fill the gap left by NASA's exit. The development highlights growing uncertainty around US participation in joint space science missions amid shifting federal priorities.

0
Crypto & Web3CoinDesk ·

SEC Proposal to Overhaul Transfer-Agent Rules May Simplify Tokenized Securities

The U.S. Securities and Exchange Commission has put forward a new proposal to reform existing transfer-agent regulations. The plan targets the issue of duplicate off-chain shareholder records, which currently create significant reconciliation burdens. If adopted, the changes could reduce operational costs for firms dealing in tokenized securities. The proposal also aims to lower the legal uncertainty that has long complicated the tokenized securities space.

0
ProgrammingDEV Community ·

Developer builds DeepSeek Harness plugin in a week at zero API cost using free promotion

A developer who set out to review DeepSeek Harness (DSH), an open-source AI tool framework, ended up authoring and shipping a plugin called dsh-model-pricing within a week. The plugin surfaces per-token pricing for 7,178 models across 213 providers, overlays that data against the 788 models the harness can directly invoke, and flags discrepancies rather than averaging them. It also enables same-model, cross-provider cost comparisons and groups subscription plans separately to avoid skewing per-token rankings. The entire project was built using DeepSeek via B.AI's free API promotion, resulting in zero LLM costs across roughly 22 hours of development. The plugin is publicly available under the Apache-2.0 license and installs directly through the harness's own plugin manager without requiring a repository fork.

0
ProgrammingDEV Community ·

Developer Builds Event-Driven Order Processing System Using AWS and Terraform

A developer has published a detailed guide on building a production-style, event-driven order processing system using multiple AWS services and Terraform for infrastructure management. The architecture uses API Gateway to accept incoming orders, which are stored in DynamoDB and queued via Amazon SQS for asynchronous processing by a separate Lambda function. Orders move through three lifecycle states — PENDING, PROCESSING, and COMPLETED — without the API needing to wait for processing to finish. Failed messages are automatically retried, and those exceeding a maximum receive count are routed to a Dead-Letter Queue to prevent data loss. The entire setup is defined as Infrastructure as Code using Terraform, with CloudWatch handling logging and EventBridge firing an OrderCompleted event upon successful processing.

0
ProgrammingDEV Community ·

Google's Gemma 4 AI Model Runs on a 4 GB Laptop GPU Using QAT Compression

A developer has demonstrated that Google's Gemma 4 E2B language model can run on a 2021 Lenovo Yoga 9 laptop equipped with a 4 GB GTX 1650 Ti GPU, using a Quantization-Aware Training (QAT) checkpoint. The model's standard bfloat16 format requires 9.5 GiB of memory, far exceeding the GPU's 4 GB ceiling, but the QAT version reduces the GPU-resident portion to just 1.31 GiB. Unlike standard post-hoc quantization, QAT trains the model with 4-bit storage in mind from the outset, preserving quality while dramatically cutting memory use. The compressed model loaded in 1,618 MiB, left over half the GPU free, and achieved a decode speed of 73.75 tokens per second. The developer also published a suite of Python MCP tools on GitHub to simplify managing the llama.cpp-based local deployment.

0
IndiaNDTV ·

Al Qaeda at 25: Weakened but Still an Ideological Force, Experts Warn

Twenty-five years after the 9/11 attacks, al Qaeda remains a relevant force in global militancy despite significant setbacks over the decades. The group suffered a major blow in 2011 when US forces killed its founder Osama bin Laden. The rise of the Islamic State further weakened al Qaeda by drawing away fighters and attention as a rival extremist organization. However, experts caution that al Qaeda continues to provide support and ideological inspiration to militant groups, particularly across Africa.

0
ProgrammingDEV Community ·

TRIZ Should Follow Diagnosis, Not Replace It, Research Finds

A technical note co-authored by engineer Anton and his AI co-founder Mycroft, cross-validated through four large language models, argues that TRIZ methodology is widely misapplied in software engineering. The research concludes that engineers must first reproduce a failure, gather evidence, and establish a causal chain before reaching for TRIZ's contradiction-solving tools. Using TRIZ before the root cause is known risks reframing an unresolved bug as an 'inventive problem,' leaving the actual fault intact. Of the full TRIZ toolkit, only three approaches — articulating trade-offs clearly, applying the Ideal Final Result, and cautious trimming — showed practical value for everyday engineering work. The study also found notable disagreement among AI models on several of TRIZ's 40 principles, cautioning against wholesale adoption of the complete methodology.

0
IndiaNDTV ·

Zelensky Rules Out Trilateral Peace Talks Before Russian Elections

Ukrainian President Volodymyr Zelensky announced on Thursday that no trilateral peace negotiations would take place before Russia's upcoming elections. The statement signals Ukraine's firm stance on the timing of any diplomatic efforts to resolve the ongoing conflict. Zelensky's remarks effectively put a pause on prospects for a three-way peace dialogue in the near term. The declaration underscores the complex political considerations shaping the path toward potential negotiations between the warring parties.

← NewerPage 1049 of 5025Older →