SShortSingh.
0
ProgrammingDEV Community ·

Developer shares self-deleting PHP deploy workers for a 1,000-page site with no SSH access

The author runs The DJ Calendar, roughly 1,000 PHP/MySQL pages on shared cPanel hosting without shell access, SSH, or a deployment pipeline. Their hosting caches HTML for five minutes and opcache serves stale output briefly after writes, making manual code pasting through a browser file manager risky. To address this, they built a worker pattern: a single PHP file uploaded to the web root and triggered once with a secret token, which applies the change and then deletes itself. The approach includes safeguards such as verifiers that check exactly what a patch writes, with automatic restoration on failure, and an 18-rule pre-flight checklist. The author open-sourced the project under the MIT license and invites readers to share their own techniques for working safely with no shell access during a production incident.

0
ProgrammingDEV Community ·

Magento 2 module lists each cart discount rule on its own line with customer-facing labels

A developer found that Magento 2 merges all applied cart discounts into a single totals row, and that the bracketed label can pull text from a rule's internal description field, which may expose internal notes to customers. Because Magento stores only a combined discount description and not per-rule amounts, the split cannot be rebuilt after an order is placed. The developer therefore built a module that records each rule's label and amount at order creation, showing one line per rule. Labels come from customer-facing store labels or coupon codes rather than rule descriptions or names. The approach was tested on a clean Mage-OS installation, with the rule description appearing in a customer email in the unmodified setup.

0
ProgrammingDEV Community ·

Brazil's regulators set strict rules for lawyer-bank AI partnerships

Joint go-to-market efforts between Brazilian lawyers and banks must follow rules set by the Central Bank of Brazil and the Brazilian Bar Association, with ethics, data sovereignty and client confidentiality at the center. Regulators reportedly treat such collaborations as high-risk, requiring pre-deployment validation, registration in the central bank's AI monitoring system, and lawyer responsibility for final legal conclusions. AI systems used in these settings must keep detailed logs, support traceability, and include mandatory source attribution and confidence scoring. Shared liability can apply to both the bank and the law firm if an AI tool misclassifies a clause and the error is endorsed.

0
ProgrammingDEV Community ·

Brazil's OAB Sets Accountability Rules for Lawyers Using AI in Legal Work

Legal practice in Brazil is tightly regulated by the Ordem dos Advogados do Brasil (OAB), under the Federal Constitution and Law No. 8,906/1994. Lawyers must hold active OAB registration, and only they may perform acts reserved for the profession, such as giving legal advice or representing clients. Existing OAB ethics rules do not ban AI use but require lawyers to take full responsibility for AI-generated content, including verifying its accuracy and compliance. OAB guidance warns against delegating judgment or client decisions to algorithms and recommends transparency with clients about AI involvement. OAB's 2024 resolution also encourages AI literacy in mandatory continuing legal education.

0
ProgrammingDEV Community ·

OnePassApps Reports No Set-Cookie Headers Across 56 Pages of Its Own Site

The team behind OnePassApps checked every URL in its sitemap over plain HTTPS without a browser, session, cookies, or JavaScript. None of the 56 pages returned a Set-Cookie header, and the API host's public routes did not either. Caching differed between hosts: app pages used a public, revalidating policy, while API routes were marked private and no-store. Only two responses carried a Vary header. The author notes the test covers server headers only, not signed-in sessions or browser-side storage.

0
ProgrammingDEV Community ·

Cómo Laravel se entera de que un archivo terminó de subirse a S3 sin depender del navegador

Un tutorial de la serie sobre subidas directas a S3 con Laravel aborda un problema concreto: si el navegador sube el archivo directamente al bucket, la aplicación puede no enterarse nunca si el usuario cierra la pestaña antes de confirmar. El autor reconoce que en su implementación era el navegador quien avisaba a la app, lo que dejaba registros pendientes cuando la confirmación no llegaba. Para resolverlo propone que sea el propio bucket quien notifique los eventos de creación y borrado de objetos. Describe cómo configurar esas notificaciones con filtros por prefijo y sufijo, y cómo destinarlas a una función Lambda que traduce el evento para el worker de Laravel. El capítulo también explica algunas restricciones de los filtros y muestra la estructura del JSON que S3 publica al ocurrir un evento.

0
ProgrammingDEV Community ·

Why Cassandra handles high-frequency writes better than PostgreSQL

Cassandra can absorb thousands of independent device writes per second by spreading them across servers and batching disk I/O on each one. Each write is appended to a commit log and held in an in-memory memtable, which is later flushed in sorted order to an SSTable, following a log-structured merge tree design. PostgreSQL also uses a write-ahead log, but it must update heap pages and indexes as each row arrives, so a single primary can become a bottleneck under heavy insert rates. Cassandra shifts some work into background compaction, which must keep pace to sustain throughput, while partitioning lets multiple servers process writes in parallel. The article notes that PostgreSQL can still handle high insert rates within its primary's capacity, and that the outcome depends on hardware, schema, durability settings, and how evenly writes are distributed.

0
ProgrammingDEV Community ·

Why a project_id index fails 'latest 20 issues' queries on large projects in PostgreSQL

A developer found that a common 'newest 20 issues per project' query scanned about 200,000 rows for their largest project even with a project_id index. Benchmarks on PostgreSQL 16 with 2 million issues showed the plain index touching 1,941 buffers on the big project versus 23 with a composite index. The problem is that the index finds the project's rows but cannot provide date order, forcing a full fetch and sort that scales with project size. A composite index on (project_id, created_at DESC, id DESC) lets Postgres read the newest rows directly and stop after 20. The author also advises building the index with CONCURRENTLY and benchmarking against the largest tenant.

0
ProgrammingDEV Community ·

Overusing Broadcast Joins Can Trigger Spark OutOfMemory Failures

A popular quick fix for slow Spark shuffles is forcing a broadcast join, which can work initially but becomes risky as the broadcast table grows. Symptoms include stalled executors, heartbeat timeouts, heap-space OutOfMemoryErrors during serialization, and high GC time in the Spark UI. Adding cluster nodes does not help when a single broadcast table exceeds per-executor memory. The article notes that the default auto-broadcast threshold of 10 MB can be misleading, since on-disk file size can inflate several times in memory. It recommends checking the BroadcastExchange operator in the SQL plan, verifying the smaller table is the one being broadcast, and adjusting or disabling the threshold where needed.

0
ProgrammingDEV Community ·

CutVoke: designing MCP tools for an AI-editable, stateful video timeline

The author built CutVoke, an MIT-licensed, local-first video editor whose persistent project can be edited by both humans and AI agents. A Python engine stores the project locally and exposes it through a React editor, an MCP server, an HTTP API, and a CLI, with FFmpeg handling previews and exports. To prevent conflicts, agents take an editing lease that the UI displays, and commits carry an expected revision so stale plans are rejected. Safety features include command previews, batched single-step undo, idempotent retries, and rendered frame checks for captions and cuts. The project is an early prerelease, and the author is seeking feedback on the agent API design.

0
ProgrammingDEV Community ·

Agile Isn't a Universal Fix, Says Coach Arguing It Suits Only Uncertain Projects

An Agile coach argues that the methodology is designed to manage uncertainty and is not suited to highly predictable, fixed-scope projects. The piece contends that many organizations wrongly equate Agile with speed, when its real value lies in adaptability. Agile is presented as most useful for complex, innovative work where user feedback shapes the roadmap, such as much modern software development. The author advises against it for projects with rigid scopes, strict contracts, regulated environments, or limited stakeholder availability, citing examples like data center migrations and compliance updates.

0
BusinessEconomic Times ·

William Reportedly Ignores Harry and Meghan, Acting as if They Don't Exist

The Economic Times reports that Prince William has been behaving as though his brother Prince Harry and Harry's wife Meghan are not part of his life. The article's account characterizes the Prince's approach toward the couple as one of distance and disregard. The piece presents this as a continuation of the strained relations between the two branches of the royal family. Specific events, dates, and direct statements from the individuals involved are not detailed in the provided text.

0
ProgrammingHacker News ·

Y/N, a YC S23 Startup, Seeks Growth Lead to Promote Its AI Storytelling Product

Y/N, a company from Y Combinator's S23 batch, is recruiting a founding growth marketer to help distribute its AI storytelling technology. The job listing is posted on Y Combinator's company jobs page. The source material provided is limited to the job posting link and a Hacker News discussion thread, which reported no points or comments at the time. Details about the role's responsibilities, compensation, and the product's specific capabilities are not included in the available information. The hire signals the company's focus on scaling distribution for its AI-driven storytelling offering.

0
TechnologyTechCrunch ·

Uber launches parking service after SpotHero acquisition, eyeing robotaxi future

Uber has rolled out a new parking offering, Uber Parking, extending its business beyond core ride-hailing. The launch follows the company's acquisition of parking marketplace SpotHero. The move reflects Uber's broader strategy of adding products that complement its transportation platform. The company is also positioning the service with an eye toward autonomous robotaxis, which would need places to park and charge. Further details on pricing and rollout timing were not included in the source material.

0
TechnologyThe Verge ·

Uber launches in-app parking reservations after SpotHero acquisition

Uber has rolled out Uber Parking, a feature that lets users reserve, pay for, and find garage or lot spaces directly within its app. The capability stems from Uber's acquisition of SpotHero, which brings access to more than 13,000 facilities across over 400 cities. Users open a new Parking icon to view an interactive map showing upfront prices and arrival times. Options include filtering by self-park or valet, outdoor lot or garage, and whether staff are present on-site. The app also asks drivers to enter vehicle details and a license plate during booking.

0
WorldBBC World ·

Former French drug-gang recruits describe childhood recruitment and life in Marseille's underworld

Men who were recruited into a Marseille drug gang as children have spoken to the BBC about their experiences. They offered a rare look inside the drug underworld in the southern French city. One member said the trade destroys people, while noting that individuals still make their own choices. The accounts highlight how young people are drawn into criminal networks. The article is based on interviews with gang members in Marseille.

0
SpaceNASA ·

Artemis Celebration Gala Honors Space Explorers at Kennedy Space Center

On November 6, 2026, Purpose Entertainment held the Artemis Celebration Gala at NASA's Kennedy Space Center Visitor Complex in Merritt Island, Florida. The event took place the evening before NASA's MAX POWER event. It recognized the explorers, innovators, and visionaries driving the next phase of human spaceflight. The gala also marked the successful completion of one of the agency's Artemis program milestones.

← NewerPage 395 of 7344Older →