SShortSingh.

Programming

0
ProgrammingDEV Community ·

See who's attacking your server in Grafana — fail2ban metrics with Prometheus

Most people set up fail2ban and forget about it. It's running, it's banning IPs, but you have no This post shows how to add fail2ban metrics to your Prometheus stack and visualize them in Grafana ## What you'll see Active bans per jail in real time Total banned IPs over time Which jails are firing most — SSH? Nginx? Recidive? Ban spikes correlated with traffic and load ## Step 1 — Add the exporter fail2ban doesn't expose Prometheus metrics natively.

0
ProgrammingDEV Community ·

MongoDB Write Concern, Journaling, and the Durability Illusion: What w:1 Actually Guarantees

MongoDB Write Concern, Journaling, and the Durability Illusion: What w:1 Actually Guarantees Most Go services that talk to MongoDB treat w:1 as "write succeeded." That's a category error. w:1 is an acknowledgment that the primary received the write and applied it to its in-memory view. Whether that data survives a sudden primary crash before the next journal flush depends entirely on how you've combined write concern with journaling, and most production codebases get this combination wrong because the driver defaults are designed for throughput, not durability. This article is about the mechan

0
ProgrammingDEV Community ·

CandleKit: a native SwiftUI candlestick chart (no WebView)

Every time I went looking for a candlestick chart for an iOS app, I found the same thing: a WebView wrapping TradingView's widget or some JS charting library. Works fine, but it means your "native" app ships a hidden browser just to draw some rectangles, and it never quite feels like the rest of your UI. So I built CandleKit, an open-source candlestick chart for SwiftUI. The goal: make it feel like a control Apple shipped, not a chart library bolted on. Momentum scrolling and pinch-to-zoom anchored under your fingers Long-press crosshair that snaps between candles with a haptic tick Live tick

0
ProgrammingDEV Community ·

Give a Jira workflow rule a memory that survives, without blowing the prompt budget

Give a Jira workflow rule a memory that survives, without blowing the prompt budget Key takeaways END STATE: a workflow rule that accumulates lessons about YOUR instance across runs, injected under a byte cap you can prove holds, with duplicates folded in rather than appended. Cap the prompt block in UTF-8 BYTES, never in string length. Measured: a Japanese memory block was 95 bytes for 53 characters — a char-based cap overshoots the budget by ~1.8x, and up to 3-4x for pure CJK. Jaccard at 0.85 is a HIGH bar. Two sentences a human reads as identical scored 0.733 and did NOT merge.

0
ProgrammingDEV Community ·

DawaaiDost: a 4B open model that reads doctor shorthand so my grandparents never take the wrong pill

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend 💊 DawaaiDost (दवाई दोस्त) Every week, my 74-year-old grandmother holds up a prescription slip or a medicine blister foil with the exact same confused look: "Beta, yeh Dolo khane ke baad leni thi ya khali pet? Aur yeh BP wali goli subah ki hai ya raat ki?" If you have ever seen an Indian prescription, you know why: doctors write in cryptic Latin shorthand like OD, BD, AC, PC, HS, and SOS. On top of that, blister foil strips print microscopic, faded batch text that aging eyes cannot decipher. Commercial healthcare

0
ProgrammingDEV Community ·

span-01 vs mercury-decide: same score, opposite failures

span-01 vs mercury-decide: same score, opposite failures Last time I tested a "decision model" — a model that takes a plain-language question about a text and answers with a probability — as a gate for keeping Japanese narration free of English words. That article is here: Is regex enough? I tested span-01 on mixed-language text Code and measured data: / span01-eval span01-eval Evaluating prompt-defined "decision models" (span-01-lite, mercury-decide) as a language gate — against a plain regex and a generic chat model — with every number recomputed from saved JSON artifacts. English | 日本語 Can

0
ProgrammingDEV Community ·

Agentes LLM: pruebas de email con límites claros

Los agentes LLM pueden ayudar a investigar por qué falla una prueba de email, pero hay una diferencia importante entre asistir una ejecución y controlar una ejecución. Si el modelo puede hacer cualquier cosa, el resultado será dificil de reproducir: una corrida pasa, la siguiente usa otro buzón, y el equipo termina discutiendo con una explicación bonita en lugar de revisar evidencia. La solución práctica es tratar al agente como un componente dentro de un sistema con límites. El modelo interpreta señales y propone el siguiente paso. Las herramientas, en cambio, aplican operaciones pequeñas, va

0
ProgrammingDEV Community ·

An exploration of media as code: deterministic audio, synchronized visuals, runtime-bound media, transcription, and developer tooling in .NET.

Media as Code: Building Deterministic Audio, Visuals, and Adaptive Experiences with SoundScript What changes when audio, visuals, timing, application state, and even parts of media analysis become things developers can compile, inspect, test, diff, and version? Most software teams are comfortable treating configuration as code. Infrastructure became code. Build pipelines became code. UI increasingly became declarative.

0
ProgrammingDEV Community ·

Your passkey can be an encryption address. The domain is the key.

There is still no simple way to encrypt something to a person. You can encrypt to a server, or to someone you have already swapped keys with, but not to "Maya, whoever and wherever she is." I built Letterlock to try: the passkey you already have becomes an encryption address. Your device derives an X25519 key from the passkey, publishes only the public half to a directory contract on Monad, and from then on any app or agent can look your key up with one read and seal data only your passkey opens. It is live on Monad mainnet (2:32 demo with a real passkey, try it in two minutes, no wallet). Thi

0
ProgrammingDEV Community ·

Stop Paying for Firebase: How to Self-Host Supabase on DigitalOcean for Free

Stop Paying for Firebase: How to Self-Host Supabase on DigitalOcean for Free Building an app or launching a startup used to mean writing backend code from scratch. Then came Firebase, and more recently, Supabase—offering real-time PostgreSQL databases, instant Auth, Storage, and Edge Functions. But as your application scales, cloud platform limits quickly turn into massive monthly bills. Free tiers run dry, database storage limits kick in, and user authentication pricing starts to compound. Fortunately, Supabase is open-source.

0
ProgrammingDEV Community ·

Stop Paying for AI App Builders: Self-Host Dify for Free on DigitalOcean (Step-by-Step Guide)

The Shift to Private AI Orchestration Building LLM-powered applications (like customer service agents, internal database query assistants, or automated content generators) has never been more popular. However, developers quickly run into two massive roadblocks when using proprietary cloud-based AI builders: Prohibitive Pricing: SaaS tools charge per user seat, per runs, or add heavy markups on top of your LLM token usage. Data Leakage & Privacy: Uploading internal company documents, customer records, and system schemas to external third-party platforms is a compliance nightmare. Dify.ai is the

0
ProgrammingDEV Community ·

PlayNext

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend My friends and I often spend more time deciding what to play than actually playing. PlayNext was built for a friend who loves PC gaming but can't pick a game when they sit down to play. / PlayNext PlayNext 🎮 Stop scrolling. Start playing. PlayNext is a small website that helps gamers decide what to play next.

0
ProgrammingDEV Community ·

Go for the JavaScript Developer: What Tripped Me Up and What Finally Made Sense

I was really offended when Go first refused to compile my code because of a single unused variable. In JavaScript it's perfectly possible to have a dozen such variables without anyone noticing, but Go focused on one and basically told me to clean my room. Even though I've now been using both languages for a long time, I can state that the offence I felt at the beginning has changed into respect. If you're using JavaScript and are wondering whether Go is worth your time, then this is the article I wish I had read at the start. I'll explain the areas in which I had the most difficulty: errors, c

0
ProgrammingDEV Community ·

7 Best Perplexity Alternatives in 2026 (Tested, With Pricing)

TL;DR ChatGPT is the best overall alternative — search, canvas, and analysis in one, at Claude cites more carefully and summarizes long sources better ($20/mo). Gemini wins for Google-sourced freshness at $19.99/mo (or free). Grok is the and the work around it. Perplexity popularized cited AI search, but every frontier lab now ships web search with Alternative Entry price (Oct 2026) Free tier Best for ChatGPT (Plus) $20/mo Yes (limited) All-rounder: search + analysis + files Claude (Pro) $20/mo Yes (limited) Careful citations, long-source summaries Google Gemini (AI Pro) $19.99/mo Yes (generou

0
ProgrammingDEV Community ·

A developer's checklist for Generative Engine Optimization (GEO)

More of your traffic now starts in ChatGPT, Gemini, Perplexity and Google AI Overviews instead of a list of blue links. Getting your product named in those answers is called Generative Engine Optimization (GEO). Most of it is plain engineering work. Check robots.txt. Many sites block GPTBot, PerplexityBot, ClaudeBot or Google-Extended by accident through a broad disallow rule.

0
ProgrammingDEV Community ·

n8n vs Make: Which Automation Platform Earns Its Keep?

TL;DR n8n wins for developers and self-hosters: unlimited executions when self-hosted, Make wins for n8n (fair-code licensed) is a node-based workflow engine that started life for developers. Every node can be extended with JavaScript or Python, and you can host it yourself with no execution limits. Make (formerly Integromat) is a visual automation cloud with a polished scenario canvas, iterators, routers, and a huge app catalog. It is cloud-only. Pricing as of October 2026 (both vendors' own pricing pages): Plan n8n Make Free Self-hosted Community: $0, unlimited executions Cloud: $0, 1,000 op

0
ProgrammingDEV Community ·

An Index Is Not a Market: What the x402 Storefront Ships, and What It Leaves Out

This week the x402 ecosystem got a storefront. Agentic.market — a directory of x402-enabled services, operated by Coinbase and presented as an "app store for agents" — now headlines 2,980 services. We are in it. So instead of arguing about it from the outside, we queried its public catalog and checked our own row, field by field, against our live 402. What that exercise shows is a clean line between two things that both call themselves a marketplace: an index, and a market.

← NewerPage 683 of 3154Older →