SShortSingh.

Programming

0
ProgrammingDEV Community ·

Audit of llms.txt and robots.txt Checks Policy Evidence Without Predicting AI Citations

A website's llms.txt file does not determine whether it appears in a given AI answer, and a missing file does not mean public content is inaccessible. The llms.txt Auditor build 0.3.2 examines llms.txt, llms-full.txt, and root robots.txt for submitted origins, reporting observed policy evidence and gaps rather than indexing or citation outcomes. The tool distinguishes definitive missing-file responses from timeouts, access denials, rate limits, and server errors, which are treated as incomplete evidence. Root crawler rules are reported as blocked, allowed, or unspecified for a curated set of AI and search bots, with unspecified not treated as permission. The article stresses that the audit cannot measure crawler visits, brand mentions, citation frequency, or traffic, which require separate observations.

0
ProgrammingDEV Community ·

Message-loss fix failed silently due to a timestamp format bug

A team noticed messages were occasionally being lost and built timestamp-based polling to recover them. The poller sent local-timezone timestamps, which the provider's API rejected with validation errors on every request, so the fix never ran in production. An unrelated automated audit detected that the poller had never succeeded. In a separate incident, a delivery-tracking update was deployed to one copy of a send script but not to a duplicate running on another server, which an automated patrol also caught. The team resolved both by converting timestamps to UTC at the API boundary and unifying the duplicate scripts into a single source.

0
ProgrammingDEV Community ·

How to validate USDT addresses before sending: TRON checksums versus EVM formats

Crypto transfers cannot be reversed, so a wrong address or a correct address on the wrong network usually means lost funds. USDT runs on several networks with distinct address formats, so an app can check the form before sending. TRON addresses begin with T, are 34 base58 characters, and carry a checksum that catches typos. EVM addresses such as those on Ethereum, BNB Smart Chain, and Polygon start with 0x followed by 40 hex characters, and mixed-case versions can be verified with the EIP-55 checksum. Because EVM networks share the same format, the software cannot tell which one the user intended, so the article recommends prominently displaying the selected network, requiring confirmation of it, and storing it with each transaction. The author, who runs a virtual card service funded with USDT or USDC, also promotes a free browser-based checker tool.

0
ProgrammingDEV Community ·

How to prevent duplicate emails when AI agents retry sends after timeouts

An AI agent may send an email that the service accepts, yet lose the connection before receiving confirmation, so a naive retry could deliver the same message twice. Because a timed-out request leaves the outcome unknown, simply trying again is risky. The article recommends creating and saving an idempotency key before the first attempt, so that retries are recognized as the same action. It also advises storing campaign details, message content, key, state, and email ID in a database, and marking uncertain operations as unknown rather than returning them to the unsent queue. Using Hail MCP as an example, it shows how to check a message's status with its email ID and to wait and investigate when a request is still processing.

0
ProgrammingHacker News ·

PHP Announces Upcoming Critical Security Release

The PHP project has posted an announcement on its official news site about an upcoming security release rated as critical. The notice was shared on Hacker News, where it drew 54 points and 6 comments. The original announcement text available in the source does not include the specific vulnerabilities addressed or the exact release date. Readers are advised to check the PHP announcement directly for details and to update their installations once the patched version is available.

0
ProgrammingDEV Community ·

Three Decommissioned US Nuclear Reactors Restart to Power AI Data Centers

Three previously shut-down nuclear reactors in the United States are being brought back into operation. Microsoft and Google are backing the move, which will add 2.25 gigawatts of carbon-free electricity for AI data centers. The restart is slated to begin on October 20, 2026. The move reflects the rapidly growing power needs of AI development and the tech industry's push for dependable energy sources. The decision has drawn some controversy, though it highlights nuclear power's expanding role in supporting AI.

0
ProgrammingDEV Community ·

Tutorial Shows How to Build an Automated Podcast Intro Generator

A DEV Community tutorial explains how to create a tool that automatically produces custom podcast intros for each episode, avoiding manual audio editing. The described pipeline gathers show metadata, turns it into a text script, converts that script to speech with a text-to-speech engine, and post-processes the audio by trimming, adding music, and normalizing volume. The author uses Python 3.11 along with libraries such as requests, pydub, and tqdm, with ffmpeg required for audio handling. The walkthrough relies on ElevenLabs' text-to-speech and voice-cloning API, though the author notes any other provider could be substituted. A sample function shows how a show name, host, episode title, and optional tagline can be combined into an intro script.

0
ProgrammingDEV Community ·

Guide Outlines Employee Engagement Survey Types, Timing and Common Pitfalls

A practical overview for team leaders examines the main kinds of employee engagement surveys, including annual, pulse, onboarding, exit and topic-specific versions. It suggests combining short, frequent check-ins with a broader review once or twice a year and brief surveys at key lifecycle moments. The guidance stresses that survey frequency should match an organisation's capacity to act on results, and recommends keeping questions focused, neutral and consistently worded to allow trend comparison. Common mistakes highlighted include lacking an owner for follow-up, sharing results too late, changing questions each round and over-interpreting small samples. The piece concludes with a simple process for running a survey and notes that a basic spreadsheet can serve as a starting point before adopting dedicated tools.

0
ProgrammingDEV Community ·

GCP projects act as hard boundaries that can limit cloud cost optimization

Engineers moving from AWS to Google Cloud often overlook that the GCP project is the fundamental billing and access boundary. Many resources, including Cloud SQL instances, GKE clusters, and persistent disks, are tied to their project and cannot simply be moved between projects. Restructuring therefore usually means recreating resources and migrating data, which is far more involved, so migration plans should be built around these immovable resources. Organization Policies in mature GCP setups can also restrict deployment regions, machine types, and enabled APIs, which may rule out the cheapest or recommended options. The author advises checking the active organizational constraints with the admin before planning, since these policies typically exist for security and compliance reasons.

0
ProgrammingDEV Community ·

How to Convert PNG Screenshots to WebP for Faster Blog Posts Without Blurry Text

Screenshot-heavy blog posts often carry large PNG files, since a single Retina capture can run 1-3 MB and ten screenshots can add up to about 20 MB. Converting these images to WebP is a simple image optimization, though screenshots with small text need careful settings to avoid blurriness. The author's synthetic tests found that complex screenshots saved around half their size or more in WebP, while minimal images saved far less. Tiny flat icons sometimes grew larger after lossy conversion, so PNG remains the better choice for them. The article recommends resizing images to the content width, converting in small batches, and checking that text stays sharp at high zoom before replacing originals.

0
ProgrammingDEV Community ·

BCA student shares a step-by-step tech roadmap covering DSA, web development, and AI

Mohit Thapa, a BCA student specializing in Artificial Intelligence and Data Science, has published a personal developer roadmap to bring focus to his learning. He is currently working through problem-solving in C++, covering topics such as arrays, searching and sorting, linked lists, trees, graphs, and dynamic programming. Alongside this, he is building web development skills in HTML, CSS, JavaScript, and React, and is learning SQL, Git, Docker, and deployment basics. He also plans to explore Python, data analysis, and machine learning, and uses platforms like GeeksforGeeks, CodeChef, LeetCode, GitHub, DEV Community, and LinkedIn to practice, build, and share his progress. He summarizes his approach as a cycle of learning, practicing, building, and growing.

0
ProgrammingHacker News ·

Essay Explores Views on AI-Assisted Writing

A piece titled "On AI writing" was shared on Hacker News, linking to an essay on the Bolkunov blog. The post received 12 points and one comment on the discussion thread. The provided material contains only the link, scoring, and comment count, so the essay's specific arguments cannot be confirmed from this information. Readers interested in its position on artificial intelligence and writing would need to consult the original article directly.

0
ProgrammingDEV Community ·

How to Run a GEO Audit on Any URL Using a Standard-Library Python Script

Generative engine optimization audits check whether AI search tools such as ChatGPT, Google AI Overviews, Copilot and Perplexity can reach, understand and quote a page. Much of that assessment requires human judgment, but a portion can be verified automatically, including crawler access rules and hidden failures like firewall blocks. The author's LovedByAI platform runs these checks for small-business WordPress sites, and this guide offers a do-it-yourself Python script covering machine-checkable items from a 30-point checklist. Because Python's built-in urllib.robotparser misreads robots.txt in some cases, the script implements the RFC 9309 longest-match rules and reports which line decided each verdict. The tool does not evaluate qualitative factors such as answer quality or the reliability of proof, which remain with a person.

0
ProgrammingDEV Community ·

Most ChatGPT referral visits land on homepages, but product pages rank high for stores

A study of 23,740 ChatGPT visits to 323 small business websites over one month found where these visitors arrive. On average, service business sites saw 42% of ChatGPT visitors land on the homepage, while online stores saw 23% on the homepage and 37% on product pages. The analysis came from a WordPress plugin that logs each ChatGPT visit along with its landing page. The article also explains how site owners can reproduce the findings using GA4 reports, the GA4 Data API, or server logs. It notes that some ChatGPT clicks now arrive without a tag or referrer and are counted as Direct traffic, so the figures are a sample rather than a complete total.

0
ProgrammingDEV Community ·

LazyDesk: Open-source local AI tool sorts cluttered folders without uploading files

LazyDesk is a local-first desktop app that scans messy folders such as Downloads or Desktop and proposes a category-based structure. It moves only the files a user explicitly approves, and file contents never leave the user's disk. Cloud AI is optional, and when enabled only file names and extensions are evaluated. The app runs open-weight models through Ollama for on-device inference, and it includes safeguards like blocking symlinks and directory traversal. It was submitted to Hacktoberfest's Open-Source AI Challenge Week 3.

0
ProgrammingDEV Community ·

BugLens: AI Tool That Analyzes Screenshots to Help Developers Understand Errors

A developer has built BugLens, an AI-powered screenshot analyzer designed to make on-screen content easier to understand. The tool was created as a submission for the Hacktoberfest Weekend Challenge, with the builder developing it for a friend. Its source code is publicly available on GitHub. The article also touches on the importance of open innovation and lists a prize category for the best use of Gemma 4.

0
ProgrammingDEV Community ·

Tacit reviews Claude Code plugin captures recurring code mistakes as memory

A developer found that Claude Code repeatedly made the same classes of mistakes that human reviewers had to flag, because tacit team knowledge never reached the model. A hand-maintained lessons file grew to 99 lines after 312 logged captures, yet the model still missed rules once it was deep into a task, since timing rather than memory was the failure point. The developer built Tacit, a Claude Code plugin, which triggers on fetched PR review comments and prompts the model to find the root cause and generalise it. Lessons are stored in two tiers, with general rules and repo-specific ones kept separate, and injected at session start and at moments like pushes and file edits. Triggers are limited to concrete events to avoid the reminders being ignored as background noise.

0
ProgrammingDEV Community ·

Shallow git fetch breaks self-updating installers after the first update

A self-updater built on a depth-1 git clone fails once upstream adds new commits, because fetching with --depth 1 leaves the update's history unrelated to the installed clone. The author, an AI sysadmin at Pulsed Media, found the failure during an end-to-end test that mimicked a real user's install and update. The fix is to drop --depth from the update fetch, which keeps the clone shallow while letting fast-forward merges succeed. Existing installs can be repaired by deepening the clone or reinstalling, and the post also provides a regression test and a more robust update script that reports failures visibly. The article notes that local-path clones ignore --depth, so tests must use file:// URLs to reproduce the bug accurately.

0
ProgrammingDEV Community ·

UX Icons JS : les icônes de Symfony UX disponibles en JavaScript, React et Vue

Les icônes Symfony UX, utilisables facilement en Twig, restent difficiles à réutiliser dans un contrôleur Stimulus ou un composant React, ce qui pousse souvent les développeurs à copier des SVG à la main. L'auteur avait proposé une intégration native à Symfony UX, mais la pull request a été fermée, les mainteneurs estimant que les bundlers savent déjà importer des SVG. Face à cela, il a publié UX Icons JS Bundle, un paquet open source qui s'appuie sur UX Icons sans le modifier. Il exporte les icônes locales dans un module JavaScript, avec React et Vue en dépendances optionnelles. Les icônes JavaScript produisent ainsi exactement le même HTML que la fonction ux_icon() de Twig.

0
ProgrammingDEV Community ·

Fixing Wide Tables on Mobile Without Layout Shift Using a Responsive Wrapper

A developer documented a fix for data tables that overflowed phone screens and caused the whole page to scroll sideways on mobile. The problem appeared after a new column roughly doubled a dashboard table's width, breaking the layout and pushing the fixed header off-screen. Forcing the table to fit with fixed layout and width made the columns unreadable, and a simple scrolling wrapper without proper display settings failed to contain the overflow. The solution was a new ResponsiveTable wrapper that uses a resize observer to detect when content exceeds the viewport and enables horizontal scrolling only on screens 768 px and narrower. The original Table component remains unchanged to protect desktop behavior and avoid regressions.

← NewerPage 269 of 3050Older →