SShortSingh.
0
ProgrammingDEV Community ·

Valkey 9.1 hash field TTL triples memory use in its own documented pattern

Valkey 9.1 introduced HSETEX, allowing developers to set a hash field and its expiry in a single command, mirroring the per-user auth token example shown in Valkey's official blog. A developer benchmarked this pattern against 20,000 keys and found the hash-per-item approach with a field TTL consumed roughly three times more RAM than a plain string key with EXPIRE. The culprit is an encoding switch: setting any field TTL on a hash immediately forces it from the compact listpack format to the heavier hashtable format, regardless of hash size. This behavior is a known issue tracked in Valkey GitHub issue #2618, but a fix had not landed as of version 9.1.2. The feature performs efficiently when applied to large hashes already using hashtable encoding, adding around 23 bytes per field — the pattern it was actually designed for, not the single-field-per-hash example in the docs.

0
IndiaTimes of India ·

Bus Crash Near Swiss Alpine Village Kills 5, Injures 40

A bus crash near an Alpine village in Switzerland has resulted in five fatalities and approximately 40 injuries. The incident involved a bus that crashed in the mountainous Swiss region. Emergency services are believed to have responded to the scene following the accident. Further details regarding the cause of the crash and the identities of those involved have not been provided in the available information.

0
WorldBBC World ·

Singapore court rules man cannot reclaim $369,000 spent on ex-girlfriend's gifts

Singapore's High Court has ruled against a man who sought to recover approximately $369,000 spent on lavish gifts for his former girlfriend. The judge determined that the man had willingly given the gifts, noting that the spending began even before the two entered a romantic relationship. The court sided with the woman, finding no legal grounds to compel her to return the presents. The ruling highlights that voluntarily given gifts generally cannot be reclaimed after a relationship ends.

0
ProgrammingHacker News ·

A Look Back at Forgotten and Obsolete CSS Features

A blog post published on vale.rocks explores obscure and outdated CSS properties and behaviors from the past. The article, titled 'CSS Curiosities of the Past,' examines features that were once part of the CSS landscape but have since fallen out of use or been deprecated. The piece serves as a historical reference for web developers interested in how the styling language has evolved over time. It was shared on Hacker News, where it received 5 points at the time of aggregation.

0
ProgrammingDEV Community ·

Developer Open-Sources Plugin to Fix AI's US-Centric Export Compliance Bias

A developer named Om Talaviya has released a free, open-source plugin called claude-trade-skills to address the tendency of AI tools like Claude to default to US-centric trade and tax guidance. The plugin, available on GitHub under an MIT licence, extends Claude's capabilities to provide country-accurate export compliance support for regions including India, the UK, Europe, and the UAE. For Indian users, it offers automated guidance on GST export rules, LUT filings, ICEGATE shipping bill error codes, and Rule 89(4) input tax credit calculations. The project was motivated by the real-world consequences of AI-generated export errors, such as frozen GST refunds caused by incorrect LUT or ICEGATE submissions. Talaviya has invited the developer community to contribute trade formats for additional countries to broaden the plugin's coverage.

0
ProgrammingDEV Community ·

Nimmake: Python-Based Build Tool Targets Embedded ARM and RISC-V Development

Nimmake is a lightweight, cross-platform build tool designed to simplify firmware development for ARM and RISC-V microcontrollers. It replaces traditional Makefiles with a Python-based system that automatically generates compile flags and manages library dependencies through a modular Party System. The tool supports incremental builds, multi-process parallel compilation, and an optional Ninja backend to speed up build times. Pre-built modules for popular embedded frameworks such as FreeRTOS, LVGL, and FatFS are included, enabling plug-and-play integration. Nimmake is installable via pip and also generates compile_commands.json for seamless compatibility with IDEs like VS Code and CLion.

0
ProgrammingDEV Community ·

Why Software Engineers Should Prioritize Readable Code Over Clever Code

A widely shared opinion piece on DEV Community argues that developers often mistake code complexity for technical skill, optimizing for brevity rather than clarity. The author contends that overly clever code — such as deeply nested ternaries or excessive abstractions — creates maintenance burdens, slows onboarding, and increases fragility during debugging. Drawing on a well-known quote by computer scientist Brian Kernighan, the piece warns that writing maximally clever code leaves even its author unable to debug it later. The article proposes practical tests, like checking whether a junior developer could understand a function after minimal context, to evaluate code readability before submission. It concludes that 'boring,' explicit, and predictable code is ultimately more valuable in team environments than terse or sophisticated alternatives.

0
IndiaTimes of India ·

Kansas man reunited with class ring lost in snowball fight 53 years ago

A Kansas student lost his class ring during a snowball fight on campus back in 1973. Fifty-three years later, groundskeepers discovered the ring while carrying out routine maintenance on the school grounds. In a remarkable coincidence, the original owner and his wife happened to be driving through the city on the very same day the ring was found. The couple had also spoken about the missing ring just a week before its discovery. They now plan to restore the long-lost keepsake and preserve it as a cherished memento.

0
IndiaTimes of India ·

Former India Cricketer Jacob Martin Acquitted After 22 Years in Legal Battle

Former Indian cricketer Jacob Martin has been acquitted of all charges stemming from a 2004 case involving forgery and cheating. The court found no credible evidence to sustain the allegations against him. Martin had maintained that he was not even named in the original FIR, making his prolonged legal ordeal particularly distressing. The verdict, coming over two decades later, brings closure to one of the lengthiest legal struggles faced by a former international cricketer in India.

0
ProgrammingDEV Community ·

Next.js, Supabase, and Vercel: A Practical Free-Tier Stack for Client Sites

A developer has shared the free-tier stack they use to build and ship client websites quickly, combining Next.js, Supabase, and Vercel for a streamlined workflow. Supabase provides a managed Postgres database, authentication, and storage with a generous free tier, while Vercel enables git-push deployments with preview URLs for client review. The developer highlights a commonly overlooked licensing detail: Vercel's Hobby plan is restricted to non-commercial use, requiring an upgrade to the $20/month Pro plan once a client site goes live commercially. They also note the importance of setting an uptime ping on Supabase to prevent the platform's automatic 7-day pause on inactive projects. The write-up was motivated by a gap in similar guides that fail to address how deployment terms change when a project moves from staging to a live, revenue-generating site.

0
IndiaTimes of India ·

Boeing 767 lands at 300 kmph at Miami airport, triggering automated safety alerts

A 21 Air Boeing 767 touched down at Miami International Airport at a speed of nearly 300 kmph, far exceeding safe landing parameters. The crew attempted a go-around maneuver after landing but had failed to deploy the speed brakes during the approach. This omission triggered automated warnings about the aircraft's steep descent rate and proximity to the ground. Aviation investigators are now reviewing flight data recorders and cockpit voice recordings to determine the full sequence of events.

0
ProgrammingDEV Community ·

MailProbe Uses 1,400-Domain List to Auto-Detect Disposable Email Signups

Disposable email addresses pose a growing problem for online platforms, quietly degrading open rates and inflating bounce complaints after free-tier signups. Manual review of suspicious addresses is inconsistent and unscalable, prompting developers to seek automated solutions. MailProbe, a self-hosted email verification tool, maintains a curated list of roughly 1,400 known disposable domains and checks each signup address against it via a fast, local dictionary lookup requiring no network call. The tool also performs syntax checks, MX record lookups, and role-address detection in a single API response, with the disposable check designed to short-circuit costlier operations when a match is found. Because the disposable-provider landscape changes frequently, the list requires regular scheduled updates — recommended weekly — to remain effective.

0
ProgrammingDEV Community ·

MX Lookup vs SMTP Verification: Why Confusing the Two Costs You Customers

MX record lookup and SMTP verification are two distinct email validation methods that are often mistakenly treated as interchangeable. An MX lookup is a DNS query that only confirms whether a domain has mail server infrastructure, but reveals nothing about whether a specific email address inbox exists. SMTP verification goes further by opening a direct connection to the mail server to check if a particular mailbox is real, but its reliability has declined significantly by 2026. Most cloud hosts block port 25, major providers distrust unrecognized IPs, and many servers return false positives to prevent account enumeration. As a result, MX lookup remains broadly accessible, while effective SMTP verification now requires a self-hosted setup with an established sending reputation and a fixed IP address.

0
ProgrammingDEV Community ·

Why Catch-All Email Domains Fool Verification Tools Into False Positives

A catch-all email domain is configured to accept messages sent to any address at that domain, regardless of whether the specific inbox exists. Standard verification methods like syntax checks and MX record lookups confirm only that the domain can receive mail, not that a particular local address is valid or monitored. Even SMTP probing fails to distinguish real from fake inboxes on catch-all domains, since the server returns a positive response to every query by design. Some verification services flag such domains as risky and reduce their scores, but this risks discarding legitimate business contacts like sales@ or info@ addresses. Experts suggest the better approach is to lower confidence scores for catch-all addresses rather than rejecting them outright, treating the issue as a confidence problem rather than a validity one.

← NewerPage 1117 of 5120Older →