SShortSingh.
0
ProgrammingDEV Community ·

Pillow and sharp handle Display P3 photos differently by default, shifting colors

Testing a Display P3 image through Pillow 11.3 and sharp 0.34.5 with default settings produced JPEGs that were wrong in opposite ways. Pillow's output looked washed out because it wrote the P3 values unchanged without a profile, which browsers read as sRGB. sharp converted to sRGB first, keeping everyday colors accurate but clipping the most saturated ones. Neither library is buggy; each simply defaults to a different target that pipelines inherit unless set deliberately. For images viewed in color-managed contexts, the author recommends keeping the P3 profile, which adds only about 554 bytes and stays close to the original colors.

0
ProgrammingDEV Community ·

Audit of 1,000+ JAMB and WAEC maths questions finds four topics dominate exams

ALOC Station analysed over 1,000 verified JAMB UTME mathematics questions from 2000 to 2024, plus a pilot sample from WAEC WASSCE, indexing each to curriculum topics and Bloom's taxonomy. The audit found that Geometry, Algebra, Statistics and Number Theory together make up more than 65% of JAMB maths questions. Topics such as Matrices, Modular Arithmetic and Logarithmic Variations account for under 4.5% of tested items despite taking up substantial classroom time. The authors argue that candidates often fail not from lack of study but from misallocating their revision effort. The findings are presented as a case for data-driven exam preparation over teacher lore and tutorial booklets.

0
ProgrammingDEV Community ·

AI system reports proof of 2008 Aaronson-Ambainis quantum computing conjecture, verified in Lean

Physical Superintelligence announced on November 6, 2026 that its internal research system, running a non-public Anthropic model, produced a proof of the Aaronson-Ambainis conjecture, which has been open since 2008. The Lean proof assistant accepted the argument, including a final version refined twice by the system, and the manuscript and formalization have been made public. The conjecture concerns whether quantum computers can be exponentially faster than classical ones on random inputs, lacking the structure that enables speedups like Shor's algorithm. The proof has not yet been peer reviewed, and experts still need to confirm that the formal statement checked in Lean matches the original conjecture.

0
ProgrammingDEV Community ·

Essay Warns AI Safety Failures May Stem From Misreading Reality, Not Malice

The author argues that the greatest risks from artificial intelligence may come from errors, misinterpretations, or unforeseen situations rather than a deliberately hostile machine. Drawing on The Matrix, they focus on the danger of AI producing a representation of reality so convincing it is hard to tell apart from the real thing. They also reference the film A House of Dynamite, which depicts leaders making high-stakes nuclear decisions under time pressure with incomplete information. A thought experiment follows: an AI that follows every safety rule could still help cause the disaster it was meant to prevent, if its analysis prompts actions that alter the behavior of people involved.

0
ProgrammingDEV Community ·

Business automation agents work best with separate roles, clear handoffs and owner review

An approach to business automation is described in which specialized agents handle distinct jobs, such as sorting inbound requests and drafting replies, preparing summaries from approved sources, and tracking outstanding follow-ups. A coordinator manages dependencies and returns decisions to the owner, and it is barred from approving restricted actions on its own. The author emphasizes defining what data each agent may read, what output it must produce, and when it must stop for human review, starting with one workflow and testing failure cases before adding systems. Emails, public posts, spending and deletions are to require explicit owner approval, since AI can make mistakes. The piece is written by a practitioner citing a background in technical support, full-stack development and cybersecurity.

0
ProgrammingDEV Community ·

Why an AI agent's shell command showed no output: stdout buffering when not a terminal

A developer found that Claude Code's Bash tool reported a script as still running after two minutes, with its output file empty, even though the script printed a line every second when run manually. The article attributes this to C and Python libraries switching stdout to block buffering when it is not connected to a terminal, which an agent's shell capture is not. Output therefore sits in memory until the buffer fills, the program flushes, or it exits, as documented in glibc and Python's sys docs. The author notes that Node handles pipe writes differently, with its own risk of losing output on process.exit(). Suggested fixes include setting PYTHONUNBUFFERED for Python children, using stdbuf for C programs on Linux, or adding PTY support to the tool.

0
ProgrammingDEV Community ·

Five Edge Cases That Break a Simple SaaS Referral Program

A referral program that pays commissions on real money is far more complicated than it first appears. The team building one for their SaaS product focused on five tricky cases, starting with a visitor who clicks multiple promoter links, where they chose a first-touch rule to keep the first valid code. To block self-referral abuse using multiple email addresses, they normalize Gmail addresses and compare phone numbers, flagging unusual patterns for manual review rather than blocking automatically. To prevent duplicate commissions from repeated payment confirmations, the database enforces uniqueness on the payment record, and commissions are held for 30 days to cover refunds. The article also describes splitting out GST so commission is calculated only on the base price, with payouts currently made manually.

0
ProgrammingDEV Community ·

Why HEIC-to-JPEG conversions look washed out: three color checkpoints

A set of color measurements on two synthetic and CC0 test HEIC files tagged Display P3 suggests three checks, rather than the library, explain washed-out JPEG output. Decoders differ: WebKit handed over sRGB pixels, Chromium converted a P3 PNG to sRGB, and sharp read the metadata but could not decode the pixels in its prebuilt binary. The washed-out look appeared only when Pillow saved P3 numbers without attaching the ICC profile, shifting skin and saturated colors noticeably. Carrying the P3 profile or converting to sRGB both gave accurate results, though saturated P3 colors clip when converted to sRGB. The author also warns that tools like sips -g profile can report sRGB for files that carry no embedded profile, so reading the actual bytes is the reliable way to verify the result.

0
ProgrammingDEV Community ·

Kubernetes DRA Extended Resources Let GPUs Run Without Device Plugins

Kubernetes v1.37 moved DRA extended resources to general availability, giving platform teams a stable path off device plugins. The bridge lets existing manifests keep requesting nvidia.com/gpu while the scheduler allocates specific devices through DRA. A DRA driver publishes device details, and a DeviceClass maps the extended resource name to those devices. Migration is done node pool by node pool, with the device plugin removed so a GPU is managed by only one mechanism. Teams should also confirm that quota and cost tooling still reads correctly once devices are allocated through DRA.

0
ProgrammingDEV Community ·

Senior engineers are judged by calm under pressure, not just technical skill

A DEV Community piece argues that seniority is revealed less by smooth workdays than by how an engineer behaves during incidents. It describes a scenario of a database corruption, client escalation, and broken code arriving late on a Friday afternoon. The author contends that calm, competent people steady a team in crisis, while panic spreads just as easily. The article suggests that technical depth earns a hiring decision, but emotional stability is what earns a leader broader trust. The overall message is that composure during incidents is a core marker of engineering leadership.

0
ProgrammingDEV Community ·

81% of brands ChatGPT cites are absent from Google's top 10, study finds

A 2026 analysis by EMGI of 150 SaaS companies found that most brands recommended by ChatGPT for category queries do not appear in Google's organic top 10 for those same queries. The finding fits with other studies from BrightEdge, Ahrefs, and Babel42, which all show AI citations and organic rankings diverging. The analysis attributes the gap to differing signals: Google emphasizes a page's own authority through links and engagement, while AI engines look for consensus, meaning independent sources corroborating a brand's claims. A March 2026 Trustpilot-linked study cited in the piece found AI citation rates rising sharply for brands with review profiles and active review collection. The authors conclude that optimizing only for Google leaves brands largely invisible to AI-driven recommendations.

0
ProgrammingDEV Community ·

Benchmark of six ESLint security plugins shows low F1 scores against self-authored fixtures

An author built a labelled corpus of 69 vulnerable code fixtures and tested six ESLint security plugins against it, using eslint-plugin-security 4.0.1, @microsoft/eslint-plugin-sdl 1.1.0, ESLint 10.8.1 and Node 24. The author's own tool, Interlace, scored 100%, while the other plugins ranged from 10.5% to 51.4% F1, with eslint-plugin-no-unsanitized showing 80% precision but low recall. The author acknowledges the fixtures reflect their own threat model, so low scores for plugins scoped to other surfaces such as browser DOM or Angular do not necessarily indicate poor quality. The benchmark is presented as a scope map and a regression gate rather than a ranking to select plugins, and the author has published the suite so others can reproduce the results.

0
IndiaNDTV ·

Karnataka Man Charged After Woman Found Dead Following Trip to Gokak Waterfall

A man in Karnataka allegedly took his girlfriend to the Gokak Waterfall to discuss marriage, where the trip ended in her death. According to reports, the couple had been in a relationship for about four years. The accused, identified as Basappa, had reportedly promised to marry the woman, Rakshita, but the matter often led to frequent quarrels between them. Details of the exact sequence of events are not fully clear from the available reports. The incident has drawn attention to the disputes that preceded the death.

0
IndiaIndian Express ·

Shooter in Tiger Shroff case claims to be a minor, raising new legal questions

A new development has emerged in the case involving actor Tiger Shroff, with the shooter now asserting that he is a minor. The claim could significantly affect how the case is handled under the law, since juvenile status typically brings different procedures and protections. The age claim is likely to be scrutinized by investigators and the court before any decision on the accused's legal treatment is made. Details of the claim and its verification remain central to the proceedings. The development has drawn attention because of its implications for the case's direction.

0
IndiaTimes of India ·

Singapore-based man shot dead by neighbour in Faridabad parking dispute

Paramjeet Dhankar, who had come back to India for his nephew's wedding, was killed in Faridabad during a violent quarrel with his neighbour over parking. The fatal argument broke out on Dhanteras, just two days before Diwali. According to reports, the confrontation took place after Dhankar returned from a workout. Police are investigating the case and searching for the suspect, identified as neighbour Mohan, also known as Monu Sharma, who fled the scene.

0
IndiaNDTV ·

Two Arrested Over Shooting at Kapil Sharma's Canada Cafe Last Year

Two people have been arrested and charged in connection with shootings at comedian Kapil Sharma's cafe in Canada last year. The arrests relate to incidents that police have linked to the broader case. One of the attacks followed a separate October 12 incident, when officers responded to reports of shots fired at a residence in Surrey, British Columbia. The available reporting does not detail the full charges or the suspects' alleged motives. Further details about the case are expected as the legal proceedings move forward.

0
IndiaNDTV ·

US Detains Hari Boxer, Lawrence Bishnoi Associate Linked to Threats Against Salman Khan, Kapil Sharma

Hari Boxer, reportedly an aide of gangster Lawrence Bishnoi, has been detained in the United States. He is accused of threatening Bollywood figures Salman Khan and Kapil Sharma. Indian security and intelligence agencies had been closely monitoring his movements. Their scrutiny intensified after a firing incident at the Mumbai home of director Rohit Shetty. The report does not provide further details on the charges or the next steps in his case.

← NewerPage 499 of 7355Older →