#deeekaay (@dKayTwitz) header
#deeekaay (@dKayTwitz) profile picture

#โ€œIn a world where you can be anything, be kind."

India
Joined September 2009
Photo by #deeekaay (@dKayTwitz)Photo by #deeekaay (@dKayTwitz)Photo by #deeekaay (@dKayTwitz)Photo by #deeekaay (@dKayTwitz)Photo by #deeekaay (@dKayTwitz)Photo by #deeekaay (@dKayTwitz)Photo by #deeekaay (@dKayTwitz)Photo by #deeekaay (@dKayTwitz)Photo by #deeekaay (@dKayTwitz)Photo by #deeekaay (@dKayTwitz)
#deeekaay retweeted
someone animated every DSA algorithm ๐Ÿ˜ญ visualgo.net wish I had this in college
67
402
9
3,557
327,839
You don't need to memorize algorithms. You need to see them move. So I made an app to visualize data structures & algorithms. Helps you build better apps, write better prompts, and ace interviews. 86 lessons. 21 languages. byte-sized-algorithms.vercelโ€ฆ
121
1,036
96
7,811
560,615
Personal AI Agent = LLM + Memory + Tools + Planning + RAG + Workflows + Safety + Evaluation The technical shift is clear: Chatbot โ†’ Tool Calling โ†’ RAG โ†’ Planning โ†’ Agentic Workflows โ†’ Multi-Agent Systems Build agents for reliable execution, not just better conversations.
2
22
104
3,229
Agentic AI is changing how we build software AI/ML โ†“ Deep Learning โ†“ Generative AI โ†“ AI Agents โ†“ Agentic AI The progression: Models โ†’ Generate Agents โ†’ Reason + Plan Agentic Systems โ†’ Reason + Plan + Execute The future of AI isnโ€™t just answers. Itโ€™s autonomous execution
4
23
2
105
3,690
#deeekaay retweeted
How do you make Docker containers lightweight? It's a most asked DevOps interview question Here are the practices I use to keep Docker images small and production-ready: Why does image size matter? > Faster container startup > Quicker image pulls & deployments > Lower storage and memery usage > Better cloud performance and cost efficiency Best practices: > Use small base images โ†’ Prefer Alpine or Slim over full OS images. > Use multi-stage builds โ†’ Keep build dependencies out of the final image. > Install only what you need โ†’ Avoid unnecessary tools/packages in production. > Clean package caches โ†’ Remove unnecessary cache files after installation. > Minimize layers โ†’ Keep your Dockerfile clean and efficient. > Use .dockerignore โ†’ Prevent unnecessary files from being copied into the image. > Donโ€™t run as root โ†’ Improves container security. Iโ€™m actively applying these practices while building Docker & DevOps projects. This is a learn-in-public post, so feel free to add anything I missed. Save this if you work with Docker.
8
16
107
2,613
WHAT IS THE DOCKER CLIENT (DOCKER CLI)? A STEP-BY-STEP TUTORIAL WHAT IS THE DOCKER CLI? -> Docker CLI is the command-line interface used to interact with Docker -> It allows developers to build, run, manage, and inspect containers and images -> The Docker CLI sends commands to the Docker daemon -> It provides a simple way to control Docker through the terminal HOW THE DOCKER CLI WORKS -> You enter a Docker command in the terminal -> Docker CLI interprets the command -> The CLI sends a request to the Docker daemon -> The daemon performs the requested operation -> The result is returned to the terminal DOCKER CLI ARCHITECTURE -> Docker CLI -> Docker API -> Docker Daemon (dockerd) -> Container Runtime -> Linux Kernel -> Running Container COMMON DOCKER CLI COMMANDS DOCKER RUN -> Creates and starts a container -> Pulls the image automatically if it is not available locally -> Example: -> docker run nginx DOCKER PS -> Lists running containers -> Example: -> docker ps -> Use docker ps -a to display stopped containers as well DOCKER BUILD -> Builds an image from a Dockerfile -> Example: -> docker build -t my-app . DOCKER PULL -> Downloads an image from a registry -> Example: -> docker pull nginx DOCKER PUSH -> Uploads an image to a container registry -> Example: -> docker push username/my-app:latest DOCKER STOP -> Stops a running container -> Example: -> docker stop my-container DOCKER START -> Starts an existing stopped container -> Example: -> docker start my-container DOCKER RM -> Removes a container -> Example: -> docker rm my-container DOCKER RMI -> Removes a Docker image -> Example: -> docker rmi my-app:latest MANAGING CONTAINERS -> Create a container -> Start the container -> Inspect its status -> View its logs -> Execute commands inside it -> Stop the container -> Remove the container when no longer needed VIEWING CONTAINER LOGS -> Use the logs command to inspect application output -> Example: -> docker logs my-container -> Follow live logs with: -> docker logs -f my-container EXECUTING COMMANDS -> Docker CLI can execute commands inside a running container -> Example: -> docker exec -it my-container sh -> Useful for debugging and inspecting container environments MANAGING IMAGES -> List local images -> docker images -> Pull images -> docker pull -> Build images -> docker build -> Tag images -> docker tag -> Push images -> docker push -> Remove images -> docker rmi DOCKER CLI AND REGISTRIES -> Docker CLI can communicate with container registries -> Authenticate with a registry -> Pull existing images -> Tag local images -> Push images to repositories -> Automate image distribution through CI/CD DOCKER CLI AND NETWORKS -> Create networks -> docker network create -> List networks -> docker network ls -> Inspect networks -> docker network inspect -> Connect containers to networks -> docker network connect DOCKER CLI AND VOLUMES -> Create persistent storage -> docker volume create -> List volumes -> docker volume ls -> Inspect volumes -> docker volume inspect -> Remove unused volumes -> docker volume prune DOCKER CLI AND DOCKER COMPOSE -> Docker CLI can manage multi-container applications with Docker Compose -> Define services in a Compose file -> Start the application -> docker compose up -> Stop the application -> docker compose down -> View running services -> docker compose ps WHY THE DOCKER CLI IS IMPORTANT -> Provides direct control over Docker -> Makes container management fast and repeatable -> Essential for local development -> Useful for debugging production containers -> Integrates easily with automation and CI/CD FINAL THOUGHTS -> Docker CLI is the primary interface for interacting with Docker -> It communicates with the Docker daemon to perform container operations -> Mastering commands such as run, build, ps, exec, logs, pull, and push gives you practical control over Docker LEARN DOCKER IN DEPTH -> Docker Mastery eBook -> codewithdhanian.gumroad.com/โ€ฆ
4
17
1
97
3,303
Skills needed to secure a 6-figure AI Engineer role: AI: - LangChain - LangGraph - OpenAI API Data Science: - SQL Databases - Machine Learning - Prediction Want help? ๐Ÿ‘‰Get your 1st AI+DS project: learn.business-science.io/aiโ€ฆ๏ฟผ
9
43
191
7,509
#deeekaay retweeted
Loop vs Graph Engineering: Clearly Explained! A loop is an autonomous cycle where an agent plans, acts, verifies the result, and keeps iterating until it reaches a stopping condition. The basic pattern is simple: Plan โ†’ Act โ†’ Verify โ†’ Repeat Loop engineering is about making that cycle reliable. You decide what context survives between iterations, how the agent evaluates its own work, when it should retry, how failures are handled, and what condition finally ends the run. This works well when one agent can own a coherent task from start to finish. The problem starts when the work itself becomes more structured. Some tasks need to happen in parallel. Different agents may need different context, tools, memory, or permissions. Certain steps may require human approval, while others can continue automatically. At that point, trying to force everything through one loop makes the system harder to reason about. That is where graph engineering becomes useful. A graph makes the workflow explicit. Nodes represent units of work such as agents, tools, validators, or deterministic functions, while edges define how state and control move between them. The important part is that loops and graphs are not competing architectures. A loop can itself be one node inside a larger graph. For example, a research agent may run its own Plan โ†’ Act โ†’ Verify loop, while a separate analysis agent runs another loop. A graph can then coordinate when those agents start, what context they receive, how their outputs are combined, and what happens next. So the practical distinction is: โ€ข Loop Engineering: design one autonomous execution cycle around a task โ€ข Graph Engineering: design how multiple execution cycles, tools, and decision points coordinate through shared state and explicit control flow You usually start with a loop when one agent can handle the task end to end. You move to a graph when the work needs parallel execution, specialized agents, different permissions, explicit branching, or clearer control over how state moves through the system. Graph engineering does not replace loop engineering. It becomes useful when one loop is no longer enough to hold the workflow together. I've shared the full article in the comments!
23
108
5
530
57,710
#deeekaay retweeted
AI Guardrails vs AI Governance ๐—”๐—œ ๐—ด๐˜‚๐—ฎ๐—ฟ๐—ฑ๐—ฟ๐—ฎ๐—ถ๐—น๐˜€ are built to control what an AI system can do. They can filter risky prompts, block sensitive data, restrict what information can be retrieved, or limit which tools and APIs an agent can use. That makes them useful for enforcing specific technical boundaries inside the system. But guardrails only solve part of the problem. With ๐—”๐—œ ๐—ด๐—ผ๐˜ƒ๐—ฒ๐—ฟ๐—ป๐—ฎ๐—ป๐—ฐ๐—ฒ, the focus is broader. It defines how AI should be managed across the organization: what risks are acceptable, who owns them, what standards teams should follow, and how systems are reviewed over time. So governance defines what should be allowed and who is accountable. Guardrails help enforce what the AI can actually do. But for coding agents, that creates another challenge: how do you make those engineering standards available while the agent is actually writing code? ๐—œ๐—ณ ๐˜๐—ต๐—ฒ๐˜† ๐—ผ๐—ป๐—น๐˜† ๐˜€๐˜‚๐—ฟ๐—ณ๐—ฎ๐—ฐ๐—ฒ ๐—ฎ๐˜ ๐—ฟ๐—ฒ๐˜ƒ๐—ถ๐—ฒ๐˜„ ๐˜๐—ถ๐—บ๐—ฒ, the code has already been written. Thatโ€™s where Qodoโ€™s Agentic Toolbox comes in. It lets coding agents pull in team rules and codebase context, then bring in independent review while they work, ๐—ฏ๐—ฒ๐—ณ๐—ผ๐—ฟ๐—ฒ ๐˜๐—ต๐—ฒ ๐—ฃ๐—ฅ becomes the first real checkpoint. So the same agent writing the code isn't the only agent checking it. Install the Toolbox โ†’ lucode.co/agentic-toolbox-qoโ€ฆ What else would you add? โ€”โ€” โ™ป๏ธ Repost to help others learn AI. ๐Ÿ™ Thanks to @QodoAI for sponsoring this post. โž• Follow me ( Nikki Siapno ) to improve at AI and system design.
4
46
1
171
17,793
๐Ÿ”ฅ REST API Architecture in one line: Client โ†’ Routes โ†’ Controller โ†’ Service โ†’ Database Clean architecture = scalable & maintainable APIs ๐Ÿš€
12
54
1,239
#deeekaay retweeted
System Design Essentials #29 What is Database Partitioning? Splitting a large dataset into smaller, more manageable pieces called partitions. This can happen within a single database or across multiple databases. Two types of partitioning Vertical Partitioning Splitting a table by columns. Different columns of the same row live in different tables or stores. Main table Users table -> id, name, username, password, bio, address Partition table Core Info table: id, name, email Profile Info: bio, address Horizontal Partitioning Splitting a table by rows. Same columns, but different rows live in different partitions. Users table becomes: Partition 1: Users 1 to 1M Partition 2: Users 1M to 2M This is Database Sharding, which we will learn about in the next part How are Database Sharding and Database Partitioning related? Database Sharding is Horizontal Database Partitioning. All sharding is partitioning. Not all partitioning is sharding, since partitions can also live within a single database. Why Database Partitioning? Smaller pieces mean faster scans and lookups. You can archive old or rarely used partitions separately. Maintenance tasks run on smaller chunks instead of one giant table. Key takeaway Partitioning splits data into smaller pieces, either by columns or rows, to keep queries fast and manageable. Sharding is simply horizontal partitioning taken a step further, across multiple separate databases.
6
11
79
1,653
๐Ÿšจ CSRF in 10 Seconds! Youโ€™re logged inโ€ฆ and a malicious website tricks your browser into performing an action without your permission. ๐Ÿ˜จ ๐Ÿ›ก๏ธ CSRF Token + SameSite Cookies = Better Protection
5
35
795
Anthropic just released a complete guide to building your first AI agent. If Iโ€™d had this a year ago, I couldโ€™ve built my first agent in an hour The fastest path from zero to a fully functional agent Save this, youโ€™ll thank me later
26
316
5
3,583
622,670
๐Ÿ” JWT Authentication in 10 Seconds! Login โ†’ Server creates JWT โ†’ Client stores it โ†’ Token sent with requests โ†’ Server verifies it. ๐Ÿš€ No token = No access!
12
1
25
517
#deeekaay retweeted
Prompts vs. Graphs, clearly explained! prompts are great, and the ceiling is easy to miss because it looks like you working: you type. it answers. you read it, decide it is not right, and type again. six messages later you have one good answer, and you typed every message that produced it. Graph engineering fixes this by moving the decision up a layer: not what the message says, but how many messages exist and who writes them. you need both, and here is the sentence that resolves the whole confusion: a prompt is one message. a graph decides how many there are and who sends them. โ†ณ inside one message: role, constraints, done, shape โ†ณ between messages: who writes the next one, how many run at once, which one reaches you Prompts โ†’ Context โ†’ Harness โ†’ Loops โ†’ Graphs you do not stop writing prompts. you stop writing them by hand. and the prompts a splitter writes are usually better than yours. it writes three narrow ones instead of one that has to cover everything. the trick is knowing when wording is not your variable. here is the test: take the prompt you are unhappy with and rewrite it four genuinely different ways. run each one twenty times. if the results cluster in the same place, the wording was never the problem, and you were about to spend a week on the wrong layer. one thing to know before you scale it. almost every failure people blame on a prompt belongs to a different layer. there are only five places it can live. โ†ณ if rewording changes the result, it is a prompt problem โ†ณ if the model is missing something it was never given, that is context. if it failed and nothing caught it, that is the harness. if it was wrong and nothing tried again, that is the loop. if the wrong step ran at all, that is the graph run that in order and you will stop rewriting sentences that were fine. most people never get past the first line, which is why the same prompt gets rewritten eleven times. and the one that eats whole nights: a longer prompt is not a better one. every rule you add is a rule the model has to hold while doing the actual work, and past a point you are trading attention for instructions. below i have quoted my full guide on graph engineering. it covers the three topologies, the verifier patterns, and where the gate should actually open. save this, and the repo that runs it is below โ†“
8
23
129
16,216
#deeekaay retweeted
Memory vs. Graphs, clearly explained! memory is great, and the ceiling arrives quietly: it stores what happened. it does not store what to do about it. six runs later your file has fifty lines, and the model reloads all of them before it does anything. Graph engineering fixes this by changing what memory is: not a place things are kept, but an edge that runs backwards. you need both, and here is the sentence that resolves the whole confusion: a store keeps what happened. an edge keeps what to do about it. โ†ณ a store grows with every run, and every line is reloaded before the next one โ†ณ an edge carries one derived rule, and the rule replaces the run that produced it Prompts โ†’ Context โ†’ Harness โ†’ Loops โ†’ Graphs the transcript goes away, the constraint stays. and the constraint is smaller, because "adapters preserve keyword args exactly" is four hundred tokens shorter than the run that proved it. the same four blocks work on anything you can cut into lanes. i pointed them at token launches on Robinhood Chain, open source, nothing leaves your terminal graphrun.pages.dev the trick is knowing what deserves to survive. an output is not memory. "ported the utils slice, green on first pass" tells the next run nothing it can act on. the rule you derived from it does. one thing to know before you scale it. what you write down is not what comes back. โ†ณ the root rules file and auto memory are re-injected from disk. they come back intact, every time โ†ณ path-scoped rules live in message history. they get summarized away and do not return until a matching file is read again so a rule that must persist cannot be path-scoped. move it to the root and pay the always-loaded cost, or accept that it is advisory in any long session. and the one that eats whole nights: a memory file that has never had a line deleted is not memory. it is a tax on every run you will ever make, and nobody reads it back. below i have quoted my full guide on graph engineering. it covers the three topologies, the verifier patterns, and where the gate should actually open. save this, and the repo that runs it is below โ†“
15
62
1
400
48,364
#deeekaay retweeted
Loops vs. Graphs, clearly explained! loops are great, and they have a ceiling you can watch happen: a loop goes around. it produces, checks, corrects, and goes around again. after six passes you have one job, done very well. after six hundred passes you still have one job, done very well. Graph engineering fixes this by moving the decision up a layer: not how well one job gets done, but which jobs exist to be done at all. you need both, and here is the sentence that resolves the whole confusion: the loop lives inside a node. the graph lives between them. โ†ณ inside one unit: produce, check, correct, repeat until green โ†ณ between units: split, fan out, merge, gate, send back Prompts โ†’ Context โ†’ Harness โ†’ Loops โ†’ Graphs the loop does not go away when you build a graph. it moves inside, and now there are three of them running at once on three things you would never have thought to run. the trick is being selective about what becomes a node. only spend a model where judgment lives. merging, ranking, deduping and schema checks are edges, and edges are code. free, instant, and they cannot be argued out of a verdict. one thing to know before you scale it. a loop that cannot fail is not a loop, it is a repeat with a bill attached. and the check people write is almost always the wrong kind. โ†ณ the test suite exits 0 is a check. the diff touches only the files in the plan is a check โ†ณ the output looks good, the model says it is confident, no errors were raised, none of those are checks that last one catches careful people. absence of an error is not evidence of correctness, and a loop built on it will confidently repeat a mistake until the budget runs out, with a clean log the whole way. and the one that eats whole nights: when a unit fails, return that unit, not the batch. send back four slices because one failed and you have just rewritten three correct ones. do it twice in a run and the run never converges. below i have quoted my full guide on graph engineering. it covers the three topologies, the verifier patterns, and where the gate should actually open. save this and read it below โ†“
21
119
3
861
129,720
API Authentication Made Simple API authentication is the process of verifying who or what is making an API request. Common methods include API keys, Bearer tokens, OAuth 2.0, and JWTs
41
165
3,784