SShortSingh.
0
ProgrammingDEV Community ·

Comparing Two PDF Contract Versions Word by Word with Python

PDFs have no built-in change tracking, so comparing two versions of a contract means computing the difference between the files. The article weighs three approaches: pixel-level comparison of rendered pages, line-by-line comparison of extracted text, and word-level comparison. It tests all three on a fictional design-services contract that returns with five changes, including a payment deadline moved from 30 to 60 days and altered revision and ownership terms. A reformatted copy containing identical words was also tested to see which method is robust to layout changes. Word-level diffing, implemented in about 120 lines of Python using PyMuPDF and difflib, detected the same five changes in both files, while pixel and line diffs were thrown off by reflowed text. The method also writes the changes back into the PDF as comments.

0
ProgrammingDEV Community ·

THX-02 Uses a Gate to Think Only When Reasoning Changes a 4.5B Model's Answer

The DEV Community article describes THX-02, a 4.5B decision model released under Apache-2.0 with a free API. Its authors found that always-on chain-of-thought reasoning can degrade already-correct answers, so they built a gate that decides whether deliberation is worthwhile. The gate runs inside the forward pass and fires only when the direct answer is uncertain and the question structurally requires step-by-step work. When triggered, a short thought of up to 96 tokens is generated and fed back into the model to produce a second answer distribution. The reported results show gains of about 25 points on math word problems and 4 to 6 points on other reasoning tasks, with median latency near 80 ms.

0
ProgrammingDEV Community ·

Developer offers BOTLAB crypto research codebase for $4,900, listing weak points upfront

A developer is selling BOTLAB, a crypto research project comprising about 142,000 lines of code, its domain, brand and site content, for $4,900 via third-party escrow. The seller states the product has minimal traction, with 2 registered users, no revenue in the past week, and trading bots that roughly broke even over about 98 to 99 trades. The codebase runs on a single Windows server with hardcoded paths, has no git history, and part of it is already public under the MIT licence. The seller highlights StuckScan, a free read-only tool that checks wallet addresses for staked or locked assets, and offers 14 days of handover support. Trading keys, exchange accounts and funds are excluded, and the seller warns that crypto trading carries substantial risk.

0
ProgrammingDEV Community ·

Spring Data JPA Transactions and Queries: A Best-Practices Overview

This final installment of a Spring Data JPA best-practices series covers transaction management and query techniques. It draws on examples from a large legacy production codebase and was rewritten to reflect the latest Spring Data JPA features. The article covers manual transactions via EntityManager, the middle-ground TransactionTemplate, and the @Transactional annotation. It also addresses queries, including Query versus TypedQuery, native queries, the Criteria API, parameter passing, and stored procedures, plus mapping entities to DTOs.

0
TechnologyThe Verge ·

The Verge's 2026 Holiday Gift Guide Lists Staff Favorites Across Price Points

The Verge has published its 2026 holiday gift guide, compiled from hours of staff research into their favorite products. The guide covers a broad range of categories, including minimalist smart rings, Play-Doh flowers, and sleek beat-making machines. The article frames gift-giving as a way of showing how well you know someone, and positions the list as a starting point for holiday shoppers. The piece is intended to help readers find options suited to a variety of recipients and needs. The full guide is available on The Verge's website.

0
ProgrammingHacker News ·

Ubuntu Slow to Patch Critical CVE-2026-98432 as Users Question Security Response

A Hacker News user reports that Ubuntu rates vulnerability CVE-2026-98432 at 9.8, a critical severity score, yet nearly a week later no fix has been released. The official security page still lists the issue as work in progress, though a mitigation has now been added. The user says they have relied on interim mitigations for a week and that the delay has undermined their confidence in the distribution. The post raises questions about whether the delay stems from too many supported kernels, insufficient build and test automation, or overwhelmed engineering staff. The author also argues that rising numbers of security issues will make timely OS patching harder to sustain.

0
ProgrammingHacker News ·

Field Notes Apply the Lippitt-Knoster Model to Managing Complex Projects

A post on sharedphysics.com presents practical field notes on using the Lippitt-Knoster model for managing complex projects. The article is framed around applying the framework in real working conditions rather than as abstract theory. It was shared on Hacker News, where it drew a small amount of attention. The provided material contains only the link, point count, and comment count, so the specific recommendations and examples in the article itself are not summarized here.

0
IndiaNDTV ·

Vance Criticises Iran War and Casts Himself as Leader of American Right, Report Says

According to The Telegraph, citing two sources, JD Vance has blamed Donald Trump's decision to go to war with Iran for the Republican Party's poor performance. The report says Vance made a public intervention that was drafted without Trump's approval. The account suggests the move is part of Vance positioning himself as a leader of the American right. The report relies on anonymous sources, and the details are not independently confirmed in the source material.

0
IndiaNDTV ·

Bomb Threats Hit Flights Across Europe Again Amid String of Hoaxes

Flights across Europe were targeted by bomb threats once more, following a series of hoax warnings. Authorities found no suspicious items, and no one was hurt. The threats have heightened concern because they come as the continent is still dealing with other recent disruptions. Those include attacks on supermarket refrigeration systems and drone incursions. The article provides limited detail beyond these points.

0
IndiaIndian Express ·

Indian Railways Ramps Up Festive Rush Management as Delhi Stations See 8 Lakh Daily Passengers

Indian Railways has intensified its measures to manage the surge in passengers during the festive season. Stations in Delhi are currently handling roughly 8 lakh travellers each day. The increased footfall has prompted authorities to strengthen crowd control and passenger movement arrangements. The steps are aimed at ensuring safer and smoother journeys for people travelling across the network. The original report provides further operational details on the measures being implemented.

0
IndiaTimes of India ·

3M Agrees to Pay Up to $7.35 Billion to Settle PFAS Injury Claims

3M has agreed to a settlement of up to $7.35 billion to resolve personal injury claims tied to exposure to PFAS chemicals. The agreement is meant to help people who say they suffered health harm from contaminated water and products. Around 120,000 potential beneficiaries who meet defined eligibility criteria may be covered. The claims process is designed to assess and settle cases fairly and quickly. The deal is seen as a significant step in addressing PFAS-related health problems.

0
SportsESPNcricinfo ·

Mahmud says beating a batter feels good as Bangladesh eye comeback against West Indies

Bangladesh fast bowler Mahmud expressed confidence that his side can still take the lead against West Indies. Bangladesh trailed by 268 runs after the second day's play in Sylhet. Mahmud described the satisfaction of getting the better of a batter as a particularly good feeling. His comments point to the bowling unit's determination to fight back in the match.

← NewerPage 107 of 6929Older →