SShortSingh.
0
ProgrammingDEV Community ·

Python Method Builds Correct New York Day Boundaries Across DST Transitions

A DEV Community tutorial explains that a local calendar day in America/New_York does not always last 24 hours, so adding 24 hours to a UTC start can misplace events. The approach builds local midnights for adjacent dates, converts them to UTC, and compares event instants using a half-open interval. The example Python code is scoped to dates from 2010 through 2030 and includes unit tests. Tests reportedly confirm that the November 1, 2026 fallback day spans 25 elapsed hours and the March 8 spring-forward day spans 23 hours. The article also notes that a dashboard's read time is an observation instant rather than the event time.

0
ProgrammingDEV Community ·

Hong Kong employee loses about $25 million after deepfake video call impersonates executives

A finance worker at the Hong Kong office of engineering firm Arup received a message appearing to come from the company's UK chief financial officer about a confidential transaction. After joining a video call with what looked like the CFO and several familiar colleagues, the employee made 15 transfers to five bank accounts totaling about HK$200 million, roughly US$25 million. Every other participant on the call was an AI-generated deepfake, and the fraud came to light only when the employee later checked with head office. Police described it as the first time they had seen a fake multi-person video conference used this way, and Arup confirmed it was the victim in May 2024. The company said its own systems were not compromised, as the attackers exploited trust and authority rather than technical vulnerabilities.

0
ProgrammingDEV Community ·

Codex Reset alerts now reach Telegram, Discord, email and push

Codex Reset is a service that tracks OpenAI's occasional global usage-limit resets for Codex, which are usually announced on X by Thibault Sottiaux. The service reads those public posts, checks accounts it owns to confirm when a refill has landed, and sends alerts to the channel a user chooses. Alerts cover only resets, with Tibo's teases excluded, and each message type carries a status such as a probability-weighted watch or a verified reset. Telegram and Discord deliver the same alerts, while email requires users to confirm their address through a link and check spam folders if messages do not appear. The article is written by the service's own operators, who disclose their involvement and note what the service cannot do.

0
ProgrammingDEV Community ·

Atlarix Replaces Deep-Thinking Toggle With Per-Chat Effort Dial

Atlarix has swapped its single on/off Deep-thinking switch for an effort control that adapts to each model. The old toggle could not represent the varied ways reasoning models expose thinking, such as named levels, token budgets, or simple on/off settings, and sometimes silently did nothing. Effort now uses each model's own level names, is set per chat rather than app-wide, and carries over only when the new model supports that level. Models with no adjustable reasoning, such as those that reason natively, show no Effort control at all. The control is available in the desktop app, the CLI via /effort, and editors supporting the Agent Client Protocol.

0
IndiaIndian Express ·

Delhi cautiously optimistic as ties show signs of shifting after 18 rocky months

Indian officials have described a cautious sense of optimism about the direction of bilateral relations after roughly eighteen months of strained ties. The shift is being tracked closely in New Delhi, with observers watching for concrete steps rather than rhetoric. Officials have stressed that any improvement must be built gradually and verified through action on the ground. The development is being viewed as a possible turning point, though significant differences remain unresolved. Further signals in the coming weeks will help determine whether the thaw is sustained.

0
ProgrammingDEV Community ·

Guide Urges Separate Audits of API Key Rotation and Billing Models

A DEV Community runbook explains how to rotate a production API key with an overlap period while auditing it apart from billing. It argues that auditability should drive the design, so finance and incident responders can reconstruct access and spending during the transition without disrupting legitimate traffic. The guide distinguishes prepaid auto-recharge, where investigators trace whether a funding attempt produced usable balance, from post-paid billing, where they trace usage attribution to payment obligations. It stresses that a successful key rotation says nothing about payment settlement, and that dashboards can mislead responders about which credential or funding issue is actually at fault. It recommends logging the actor, operation, time, outcome and nonsecret credential identifier for each transition, and recording how each credential relates to its billing account.

0
ProgrammingDEV Community ·

SP Layers: A Photo-Driven Interactive Guide to São Paulo

SP Layers is an interactive web project that explores São Paulo through 20 photo stories grouped into four categories: flavors, street art, breathing spaces, and city and memory. Visitors can select and reorder three places, open them in Google Maps, and switch between Brazilian Portuguese, English, and Spanish. The developer prepared each photograph in several versions using Cloudinary URL-based transformations, with the image pipeline kept separate from the browsing experience. Visitors can also build a postcard of three photos with a personal message, composed in the browser and exported as a PNG, and unlock a special postcard by answering eight observation questions correctly. The project was created for the Cloudinary November Mini-Hack and is built with vanilla HTML, CSS, and JavaScript.

0
WorldBBC World ·

Mother and daughter die in suspected grizzly bear attack in British Columbia

Authorities in British Columbia, Canada, say evidence suggests an animal may have been involved in the deaths of a mother and her daughter. The women's deaths are being treated as a suspected grizzly bear attack. The available information is limited, and investigators have not confirmed the cause or the exact circumstances. Further details are expected as the investigation continues.

0
ProgrammingDEV Community ·

Yonto Player: an open media player for Jellyfin, Plex, Emby, and local files, built with AI agents

Yonto Player is a media player that plays content from a user's own library, whether hosted on a Jellyfin, Plex or Emby server or stored on a NAS or USB drive. It runs on Android TV, phones and tablets. The app is built around a ContentSourceAdapter interface, so it does not need to know where a video comes from, and the source integrations have grown into plugins. The apps themselves are closed source, while the plugins repository and a developer contract are public so others can write plugins. The developer describes building the project with AI coding agents guided by a standing instructions file, and this is the first in a planned series of posts on the architecture.

0
ProgrammingDEV Community ·

Can Laid-Off Workers Take a New Job During the WARN Act's 60-Day Notice?

The federal WARN Act requires covered employers to give 60 days' notice before a plant closing or mass layoff, but it does not bar affected workers from accepting other employment. Leaving early can still carry financial costs, such as lost notice-period wages, forfeited or reduced severance, or lost benefits, depending on the employer's policies and the notice arrangement. Outside-employment rules and non-compete or confidentiality agreements may also be breached, especially if the new role is with a competitor. Workers are advised to check written terms, obtain any required approvals, and consult an employment lawyer when unsure. Starting a full-time job may also affect unemployment benefit eligibility, with part-time or freelance earnings typically reducing benefits under state formulas.

0
ProgrammingDEV Community ·

OnePassApps Web App Loads 69 Lazy Chunks, Image Studio Fetches 119 Scripts

A developer on the OnePassApps team measured the JavaScript delivery of app.onepassapps.com using plain HTTPS requests and browser network logs. The entry bundle references 69 lazily loaded chunk files, all of which responded successfully with long-lived immutable caching headers. Together they total about 1.5 MB uncompressed, or roughly 500 KB gzipped, with the largest being a 475 KB file. The Image Studio page fetched 119 JavaScript files and the home page 125, with 92 chunks shared between them. No public source map was available, as the map URL returned a 404 page.

0
ProgrammingDEV Community ·

Gradient Clipping Lowered Accuracy in ML Experiments, Likely by Amplifying Weight Decay

A machine learning practitioner tested whether gradient clipping, a common default in training loops, provides stability like learning rate warmup. Across five paired seeds, clipping at 1.0 cost accuracy at a tuned learning rate and worsened results at a higher one, with a tighter 0.3 threshold causing the largest drop. Instrumentation showed gradient norms were stable and clipping was active on every step, so it was acting as a constant gradient attenuator rather than a safeguard. The author argues that clipping shrinks the loss gradient but not Adam's weight decay term, effectively intensifying regularization. They propose a follow-up test removing weight decay from the most affected configuration to check this explanation.

0
IndiaTimes of India ·

Trump Reportedly Weighing Pentagon Leadership Changes After GOP Setback

President Donald Trump is reportedly considering changes at the top of the Pentagon, with Defense Secretary Pete Hegseth's position in question. The reported deliberations follow a setback for Republicans, though the details of that setback are not specified here. Reports of a possible leadership shake-up at the Defense Department are drawing attention to the administration's internal decision-making. The situation remains fluid, and no final decision has been confirmed in the headline's reporting.

← NewerPage 618 of 7360Older →