SShortSingh.
0
ProgrammingDEV Community ·

WhatsApp Status Webhooks Can Arrive Out of Order, Breaking Delivery Data

Each outgoing WhatsApp message triggers sent, delivered, read, or failed webhooks, and storing only the most recently received one can corrupt message data. A read message may revert to delivered, or a failure may be overwritten by a late sent status. Statuses can also arrive before the message is saved, causing them to be lost. The article recommends treating delivery as a forward-only state, recording each status's timestamp separately, and holding early-arriving statuses. These precautions are needed because Meta's documentation does not guarantee ordering, may send duplicates through retries, and can skip the delivered webhook when a message is read immediately.

0
ProgrammingDEV Community ·

Securing Laravel Webhook Receivers: Signatures, Replay Protection and Idempotency

A developer describes a bug where a payment provider's retried webhook caused an order to be marked as paid twice, going unnoticed for weeks. The article argues that webhook endpoints, which accept unauthenticated POST requests that change business records, commonly share three weaknesses: they trust the caller, accept old messages, and assume each event arrives only once. It proposes answering three questions for every endpoint: whether the request is authentic, whether it is fresh, and whether it is idempotent. The walkthrough builds a Laravel receiver using HMAC-SHA256 signatures over the raw body with a timestamp, a database table with a unique index on provider and event ID, and reusable verification middleware.

0
ProgrammingDEV Community ·

Python's float output inflates LLM token costs, and short timestamps and rounding can cut them sharply

A developer found that a day of sensor data exported with Python's csv module used about 49,700 tokens, far more than the information requires. Long floating-point values like 19.944444444444446 are split into many tokens by the tokenizer, but the timestamp column was the bigger cost, making up 58% of the file. Shortening timestamps to HH:MM and rounding values to two decimals reduced the file to about 17,300 tokens, a 65% saving. Rounding to one decimal lost real measurements, so the author recommends rounding only to the precision the source actually has. The article includes a script that compacts CSV files before they are sent to a model.

0
ProgrammingDEV Community ·

ISO 20022 Could Bring Instant Payment Speed to Cross-Border Transfers

Domestic payments now settle in seconds in many countries, but cross-border transfers still often take days and pass through several banks. Vladyslav Kolodistyi argues that linking fast domestic systems to one another, using the ISO 20022 messaging standard as a common language, is the next major step. Several instant systems, including SEPA Instant and FedNow, already run on this standard, and Swift has moved cross-border instructions onto it. Sharing a message format alone is not enough, since currency conversion, liquidity, compliance and liability arrangements still have to be solved. The Financial Stability Board's 2025 progress report found only slight improvement in cross-border payment costs and speed since 2023, suggesting the G20 targets for 2027 are unlikely to be fully met.

0
ProgrammingDEV Community ·

Hitting a Video File-Size Target Comes Down to Bitrate Division, Test Runs Show

A video's file size is largely determined by its bitrate, so a target size can be converted into a bitrate budget by dividing the target bits by the clip's duration. The author, who works on the online compressor CompressVid, shares a formula that accounts for audio bitrate and container overhead, and notes that a size limit is effectively a bits-per-second limit. Test runs with the tool showed that the same target produced very different results depending on the source footage. The author attributes this to encoders spending bits only where needed, since phone footage tends to be over-encoded and complex or fast-moving scenes need more bits. The figures come from the company's own tests, and the author flags which numbers are tool-reported versus his own calculations.

0
ProgrammingDEV Community ·

Busy Calendars Versus Real Results: When Work Looks Productive but Drifts from Purpose

A DEV Community essay argues that many workplaces can look productive through meetings, ticket movement, and reviews while losing sight of whether those activities help customers or solve real problems. The author suggests that organizations can settle into recognizable routines that signal competence, with roles and rituals that show participation without clarifying why they exist. Genuine impact often requires uncomfortable admissions, such as discovering that a planned product or initiative is unnecessary, which makes visible activity more appealing than outcomes. The piece uses an example of new customers struggling with a product to illustrate how much effort can be spent on planning while the core problem remains unresolved. It applies the same critique to software development, where teams may add complexity and structure without establishing what the system must accomplish.

0
IndiaTimes of India ·

Texas appeals court overturns $797,000 award in grandmother's safe-deposit box dispute

A dispute over the contents of a Texas grandmother's safe-deposit box arose after she died in 2019. Her grandson said he found $16,000 inside, while another relative insisted it held $400,000, an eight-carat diamond ring and gold coins. The grandmother's niece was later awarded close to $797,000 in damages. However, an appeals court on Tuesday reversed that award, ruling she had not followed the legal procedure required for her claim.

0
IndiaTimes of India ·

13-Year-Old Isaac Nelson Helps Release 23,000 Clams Into Florida's Coastal Waters

Thirteen-year-old Isaac Nelson took part in a project that released roughly 23,000 clams into the coastal waters of Florida. The effort aims to help restore shellfish populations and support the health of the local marine ecosystem. Nelson's involvement highlights how young volunteers can contribute to environmental conservation work. The clams were introduced as part of broader efforts to strengthen coastal habitats in the region. The initiative underscores growing community interest in hands-on marine restoration.

0
IndiaTimes of India ·

Astrolab's FLIP rover to carry an HPE AI supercomputer to the Moon

Astrolab plans to launch FLIP, an uncrewed moon rover carrying Hewlett Packard Enterprise's Spaceborne Computer-4. The mission will test advanced computing and AI capabilities directly on the lunar surface. The rover is built to withstand the harsh conditions of the Moon's south pole. It will navigate using localization software adapted from Mars missions developed by NASA's Jet Propulsion Laboratory. The effort is seen as a significant step for lunar exploration and autonomous systems.

0
ProgrammingDEV Community ·

Atlassian MCP Server Permissions Versus Data Security Policies for AI Access

A DEV Community author tested how to keep Claude's access to Jira and Confluence read-only through Atlassian's MCP server. Disabling the Jira write toolset in the Permissions tab blocked writes over both OAuth and API-token connections within 18 seconds, while reads continued. A data security policy blocking spaces or apps only filtered OAuth searches on the V2 endpoint and had no effect on the deprecated V1 endpoint. The author reports that the Permissions tab applies to the whole organization and was more reliable, whereas the data security policy requires Atlassian Guard, which costs $870 a month for 200 users. The post also notes that the settings have moved from Rovo to Connectors in the admin console, where they override Connected Apps settings.

0
ProgrammingDEV Community ·

NIS2 : trois obligations souvent sous-estimées par les entreprises

Un article de DEV Community explique que les exigences du NIS2 vont au-delà d'une simple liste de contrôle de conformité. Il souligne que trois obligations sont régulièrement minimisées, car elles bousculent les habitudes organisationnelles plutôt que les aspects techniques. La première concerne la gouvernance, avec une responsabilité personnelle des dirigeants et une supervision active de la cybersécurité au niveau du conseil d'administration. La deuxième porte sur la sécurité de toute la chaîne d'approvisionnement, fournisseurs et hébergeurs compris. La troisième touche à la gestion des incidents, avec des délais de notification stricts et la nécessité de tester les procédures de crise.

0
ProgrammingHacker News ·

NetBSD adds atto, a new beginner-friendly text editor

The NetBSD project has added a new text editor called atto to its operating system. The editor is designed to be approachable for users who are new to Unix-like systems. The announcement was shared via a post on Mastodon by the NetBSD account. The item drew modest attention on Hacker News, where it gathered 20 points and 8 comments. The source material provided is limited, so further technical details about atto's features are not covered here.

0
TechnologyThe Verge ·

DoorDash to acquire Instacart in a roughly $17 billion deal

DoorDash has announced plans to buy Instacart in a transaction valued at about $17 billion. The deal would expand DoorDash's footprint in online grocery delivery by adding Instacart's established marketplace and retailer partnerships. DoorDash began as a restaurant delivery courier and already runs its own grocery service, which faces competition from Instacart, Uber, Walmart, and Amazon. The move also reflects DoorDash's push to diversify, as rivals such as Uber have moved into the food delivery space it is best known for, including through its acquisition of Postmates.

0
IndiaIndian Express ·

Goyal says US trade deal gives India a strong comparative advantage

Union Commerce Minister Piyush Goyal has asserted that India now holds a strong comparative advantage following the recent trade deal with the United States. He framed the agreement as a significant opening for Indian exporters in the American market. The remarks position the deal as a boost to India's broader trade ambitions and competitiveness. Specific terms and timelines were not detailed in the summary provided.

← NewerPage 57 of 6493Older →