Skip to main content

Posts

Recent posts

Frequencies of Array By Hashing Technique (Optimized Approach)

Frequencies by Hashing — an interactive walkthrough Java · DSA · Hashing Counting frequencies by hashing — and where the array should live A working int[] hash-array solution, traced against three inputs, plus the actual reason people move big arrays outside main() . Play with the bucket hasher below before you read a line of code. 🪣 The bucket hasher Type an array — watch it drop into indexed buckets, live. Array (space separated) Queries (space separated) Hash it Every value becomes an index. hash[value]++ drops a ball in that bucket — no comparisons, no searching, just direct addressing. That's the whole trick. 01 The working solution This is a correct, minimal frequency counter. It sizes hash to n + 1 , which works cleanly as long as every value fits within that range. FrequenciesByHa...

Get Keycloak Auth Access Token

Understanding Keycloak Auth Access Token – A Deep Dive $ keycloak / auth-deep-dive 🔐 Identity & Access Management Getting a Keycloak Access Token — and Actually Understanding It June 2025 Keycloak OAuth 2.0 JWT OpenID Connect Service Account You hit Keycloak's token endpoint, you get back a fat JSON blob — but what is all that stuff? This post dismantles a real token response piece by piece so you know exactly what you have, why the JWT is structured the way it is, and what to do with it next. 📡 Step 1 — How to Get the Token Keycloak speaks OAuth 2.0 . The endpoint that issues tokens lives under your realm: HTTP Token Endpoint POST http://127.0.0.1:7080/realms/master/protocol/openid-connect/token Content-Type : application/x-www-form-urlencoded grant_type =client_credentials &client_id =eazybank-callcenter-cc ...

Distributed Tracing using Tempo-Grafana

Grafana Alerting – Approach 3: Dashboard Panel Alerts 🚨 Grafana Alerting Series · Part 3 of 3 Set Alerts Directly from Dashboard Panels The fastest, most visual way to configure alerts — right where your data lives. Grafana Monitoring DevOps / SRE ✅ Part 1 Alert Rules + Contact Points + Policies ✅ Part 2 Silences + Grouping + Inhibition ▶ Part 3 Dashboard Panel Alerts Most engineers configure alerts through the Alerting menu . But Grafana lets you set alerts directly from any dashboard panel — faster, more visual, and tightly coupled to the data you're already watching. No context switching required. What Is Panel-Based Alerting? In Grafana, every panel can carry its own alert rule. Instead of navigating to Alerting → Alert Rules → New Rule and rebuilding your query from scratch, you simply open the pa...

Setting Alerts , Notification Policies , Contact Points in Grafana

Grafana · Alerting Setting Up Alert Policies, Contact Points & Notification Policies in Grafana Published May 23, 2026  ·  14 min read  ·  Grafana 10+ A complete step-by-step guide to configuring Grafana's three pillars of alerting — alert rules, contact points, and notification policies — so your team gets the right alert, on the right channel, at the right time. Table of Contents 1. How Grafana Alerting Works 2. Prerequisites & Enabling Unified Alerting 3. Setting Up Contact Points 4. Configuring Email Contact Points 5. Configuring Webhook Contact Points 6. Other Contact Point Types 7. Creating Alert Rules (Alert Policies) 8. Setting Up Notification Policies 9. Mute Timings & Silences 10. Testing & Troubleshooting 11. Best Practices 1. How Grafana Alerting Works Grafana Unified Alerting has three core bui...