GyaanSetu WebDev

Frontend, backend and devops for the modern web.

209 articlesDeep, practical knowledge

How to Stop Training Bots While Keeping Citation Bots for ChatGPT Traffic

A generic “Disallow: /” for GPTBot only blocks the training crawler; the citation bots that surface your pages in ChatGPT’s answer pane remain active. Use explicit robots.txt rules or Cloudflare’s AI Crawl Control to allow OAI-SearchBot, ChatGPT-User, and their peers while denying GPTBot, ClaudeBot,

WebDev · 4 min read

Shopifyలో డూప్లికేట్ ప్రొడక్ట్ JSON-LDని ఐదు సులభమైన దశల్లో పరిష్కరించండి

Google యొక్క Schema Markup Validatorని రన్ చేయండి, సమస్య కలిగించే థీమ్ ఫైల్ లేదా యాప్‌ను గుర్తించండి, అదనపు JSON-LD బ్లాక్‌ను తొలగించండి మరియు మీ యాప్‌లను మళ్లీ ఆడిట్ చేయండి—ప్రతి దశ మెరుగైన రిచ్-రిజల్ట్ విజిబిలిటీ కోసం ఒకే ఒక స్వచ్ఛమైన ప్రొడక్ట్ స్కీమాను పునరుద్ధరిస్తుంది.

WebDev · 1 min read

Cleanup Script Erased Code Snippets From Dozens of Articles

A routine maintenance job mis-identified Liquid’s {% raw %} tags, treating them as unclosed variables and stripping the surrounding code blocks from every article that used them, forcing an emergency rollback and a rethink of migration testing.

WebDev · 3 min read

Astro 7 అప్‌గ్రేడ్ వల్ల మ్యాథ్, హెడింగ్ లింక్స్ మరియు కస్టమ్ ఆప్షన్స్ పాడవుతున్నాయి – దీన్ని ఎలా సరిచేయాలి?

Astro 7 ఇప్పుడు Rust ఆధారిత Sätteri మార్క్‌డౌన్ ఇంజిన్‌ను ఉపయోగిస్తోంది, ఇది HTML-AST ప్లగిన్‌ల కంటే ముందే సింటాక్స్ హైలైటింగ్‌ను రన్ చేస్తుంది. ఈ మార్పు వల్ల $$...$$ బ్లాక్‌లు కోడ్‌గా తప్పుగా వర్గీకరించబడతాయి, హెడింగ్-స్లగ్ ప్లగిన్‌లు IDలను రూపొందించకుండా అడ్డుకుంటాయి మరియు మీరు అందించిన నాన్-స్టాండర్డ్ మార్క్‌డౌన్ సెట్టింగ్‌లను తొలగిస్తుంది.

WebDev · 4 min read

CollectionsMarshal, TryGetValue కంటే డిక్షనరీ కౌంట్ సమయాన్ని 1.7 రెట్లు వేగంగా తగ్గిస్తుంది

నేను ప్రతి పదాన్ని ఒకసారి లెక్కించడానికి రెండుసార్లు హాష్ చేశాను. గత వారం నేను ఒక లాగ్ పార్సర్‌ను ప్రొఫైల్ చేశాను. ఇది రోజువారీ లాగ్‌లో ఎర్రర్ కోడ్‌లను లెక్కిస్తుంది. దీని ప్రధాన లాజిక్ ఒక సాధారణ డిక్షనరీ అప్‌డేట్. చాలా మంది డెవలపర్లు...

WebDev · 1 min read