<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abirami Prabhakar</title>
    <description>The latest articles on DEV Community by Abirami Prabhakar (@abirami_prabhakar).</description>
    <link>https://dev.to/abirami_prabhakar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3831604%2F8f85365a-64c0-4b75-a5c9-d2be3384712a.jpg</url>
      <title>DEV Community: Abirami Prabhakar</title>
      <link>https://dev.to/abirami_prabhakar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abirami_prabhakar"/>
    <language>en</language>
    <item>
      <title>DEAD INTERNET 🕸️: Lost Online. Found Again.</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Sat, 31 Oct 2026 17:14:27 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/dead-internet-lost-online-found-again-4b2a</link>
      <guid>https://dev.to/abirami_prabhakar/dead-internet-lost-online-found-again-4b2a</guid>
      <description>&lt;p&gt;&lt;strong&gt;An Open-Source AI Digital Archaeology Platform | Local AI | Ollama | React | FastAPI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What happens when a website disappears?&lt;/p&gt;

&lt;p&gt;A personal homepage that someone spent years building. A forum where people once shared ideas. A small community that slowly stopped posting. A software project that was abandoned halfway through.&lt;/p&gt;

&lt;p&gt;The internet moves forward, but not everything gets preserved.&lt;/p&gt;

&lt;p&gt;Sometimes, all that remains are fragments: old HTML files, text backups, disconnected conversations, timestamps, and incomplete documentation.&lt;/p&gt;

&lt;p&gt;We wanted to explore what it would look like to investigate those fragments instead of simply reading them.&lt;/p&gt;

&lt;p&gt;That's how &lt;strong&gt;DEAD INTERNET&lt;/strong&gt; came to life.&lt;/p&gt;

&lt;h2&gt;
  
  
  What We Built
&lt;/h2&gt;

&lt;p&gt;DEAD INTERNET is an open-source, local-first digital archaeology platform that turns preserved digital documents into interactive investigations.&lt;/p&gt;

&lt;p&gt;Instead of treating archived files as disconnected pieces of text, the platform lets you explore them, discover clues, connect evidence, reconstruct timelines, and investigate what might have happened.&lt;/p&gt;

&lt;p&gt;It combines deterministic evidence discovery with an optional local AI investigator powered by Ollama.&lt;/p&gt;

&lt;p&gt;The idea is simple:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don't just browse the remains of the internet. Investigate them.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Exploring The Archives
&lt;/h2&gt;

&lt;p&gt;The platform includes four fictional investigations, each with interconnected documents, clues, timeline events, and a predefined solution.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The Last Homepage
&lt;/h3&gt;

&lt;p&gt;A personal website preserved through an old backup. Explore its pages, metadata, and fragments to reconstruct the story behind the abandoned homepage.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The Empty Forum
&lt;/h3&gt;

&lt;p&gt;A once-active online community with fragmented discussions and disconnected conversations. Piece together what happened through its surviving posts.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The Lost Project
&lt;/h3&gt;

&lt;p&gt;An abandoned software project with documentation, development notes, and incomplete records. Investigate the decisions and events that led to its disappearance.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. The Forgotten Blog
&lt;/h3&gt;

&lt;p&gt;A collection of disconnected blog posts with missing context. Follow references and timestamps to understand the story behind them.&lt;/p&gt;

&lt;p&gt;Each archive is designed as a compact, playable mystery rather than a collection of unrelated sample documents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inside An Investigation: The Forgotten Blog
&lt;/h2&gt;

&lt;p&gt;One of the sample investigations is called &lt;strong&gt;The Forgotten Blog&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The Paper Moon blog survives as three entries and an export note. At first glance, the recovered files seem to predict a station fire.&lt;/p&gt;

&lt;p&gt;But is that actually what happened?&lt;/p&gt;

&lt;p&gt;The investigation asks:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Did Paper Moon predict a real fire, or does the recovered ordering hide a different explanation?&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Examining The Recovered Documents
&lt;/h3&gt;

&lt;p&gt;The Archive Explorer provides a preserved-file browser alongside a read-only document viewer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Screenshot 1: The Recovered Clock Entry&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fubj436l4b5ehsev6t2yp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fubj436l4b5ehsev6t2yp.png" alt="The Forgotten Blog - First Recovered Entry" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The first document, &lt;code&gt;01-the-clock.md&lt;/code&gt;, introduces the mysterious station incident through a story dated June 9, 1987, but published in February 2005.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Screenshot 2: Following The Next Document&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faildj4rf11mj0frwbsuf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faildj4rf11mj0frwbsuf.png" alt="The Forgotten Blog - Second Recovered Entry" width="800" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The second entry, &lt;code&gt;02-the-platform.md&lt;/code&gt;, adds an important detail: the character had already taken the last bus. It also includes an author's note explaining that the station name was borrowed from an old photograph and the characters were fictional.&lt;/p&gt;

&lt;p&gt;The second document changes how the first entry should be interpreted.&lt;/p&gt;

&lt;p&gt;That's the kind of interaction we wanted to build: a small collection of preserved documents that gradually reveals a larger story.&lt;/p&gt;

&lt;h2&gt;
  
  
  How The Investigation Works
&lt;/h2&gt;

&lt;p&gt;The experience follows a simple investigation workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Explore The Archive&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Select an investigation from the archive library. Browse preserved documents, inspect their contents, and examine available metadata.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Discover Clues&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Collect predefined evidence from documents. Each discovered clue connects to supporting artifacts and contributes to the investigation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Connect The Evidence&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Clue Board brings discovered evidence together so you can understand relationships between different documents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Reconstruct The Timeline&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Relevant events appear chronologically with references to their supporting artifacts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Ask The AI Investigator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ask questions about the archive, explore possible relationships, identify contradictions, and request evidence-based summaries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Generate An Investigation Report&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Review your findings and export the investigation as a Markdown report.&lt;/p&gt;

&lt;p&gt;The predefined solutions are independent of AI-generated interpretations. Collecting evidence, completing investigations, and accessing fictional ground-truth solutions do not depend on Ollama.&lt;/p&gt;

&lt;h2&gt;
  
  
  Investigate Your Own Archives
&lt;/h2&gt;

&lt;p&gt;We also wanted DEAD INTERNET to work beyond the four sample mysteries.&lt;/p&gt;

&lt;p&gt;That's where &lt;strong&gt;My Own Archive&lt;/strong&gt; comes in.&lt;/p&gt;

&lt;p&gt;Users can import their own preserved digital documents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HTML and HTM files&lt;/li&gt;
&lt;li&gt;TXT files&lt;/li&gt;
&lt;li&gt;Markdown files&lt;/li&gt;
&lt;li&gt;ZIP archives containing supported documents&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The platform extracts readable text and available metadata while preserving original filenames.&lt;/p&gt;

&lt;p&gt;Imported archives use the same investigation engine as the predefined cases.&lt;/p&gt;

&lt;p&gt;Uploaded content is treated as evidence, not executable code. HTML is displayed as escaped source text rather than a live webpage.&lt;/p&gt;

&lt;p&gt;One important distinction: imported archives provide document observations, not fabricated mystery solutions. The platform investigates what is actually present in the supplied files.&lt;/p&gt;

&lt;h2&gt;
  
  
  How We Built It
&lt;/h2&gt;

&lt;p&gt;We wanted the architecture to remain modular and relatively lightweight. The same investigation engine needed to work with both fictional sample archives and user-imported documents.&lt;/p&gt;

&lt;h3&gt;
  
  
  Technology Stack
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frontend&lt;/td&gt;
&lt;td&gt;React, JavaScript, Vite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Styling&lt;/td&gt;
&lt;td&gt;Tailwind CSS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Navigation&lt;/td&gt;
&lt;td&gt;React Router&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Icons&lt;/td&gt;
&lt;td&gt;Lucide React&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backend&lt;/td&gt;
&lt;td&gt;Python, FastAPI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;SQLite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validation&lt;/td&gt;
&lt;td&gt;Pydantic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local AI&lt;/td&gt;
&lt;td&gt;Ollama&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Testing&lt;/td&gt;
&lt;td&gt;pytest&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Architecture
&lt;/h3&gt;

&lt;p&gt;The application follows a straightforward architecture:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;React + Vite Frontend
        |
        v
Centralized API Client
        |
        v
    FastAPI Backend
        |
        |---- Archive Service
        |         |
        |         v
        |       SQLite
        |
        |---- File Ingestion
        |
        |---- Clue Engine
        |
        |---- AI Investigator
                  |
                  v
                Ollama
             Local Model
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The backend is divided into dedicated modules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;main.py&lt;/code&gt; handles API routes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;archive_service.py&lt;/code&gt; manages archives, artifacts, and investigation state.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;file_ingestion.py&lt;/code&gt; validates and extracts uploaded documents.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;clue_engine.py&lt;/code&gt; handles deterministic clues, timelines, and reports.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ai_investigator.py&lt;/code&gt; manages local model interactions.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;schemas.py&lt;/code&gt; defines request and response structures.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This separation keeps the investigation logic independent of the frontend and makes it easier to extend the platform with additional archive types.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bringing AI Into Digital Archaeology
&lt;/h2&gt;

&lt;p&gt;One of the central parts of DEAD INTERNET is its local AI investigator.&lt;/p&gt;

&lt;p&gt;We chose &lt;strong&gt;Ollama&lt;/strong&gt; because we wanted developers to experiment with open-weight language models without requiring hosted AI APIs or paid API keys.&lt;/p&gt;

&lt;p&gt;The application communicates with Ollama locally through its generation endpoint.&lt;/p&gt;

&lt;p&gt;The AI Investigator supports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Potential clue extraction.&lt;/li&gt;
&lt;li&gt;Identifying relationships between documents.&lt;/li&gt;
&lt;li&gt;Detecting possible contradictions.&lt;/li&gt;
&lt;li&gt;Answering questions about archived content.&lt;/li&gt;
&lt;li&gt;Suggesting chronological events.&lt;/li&gt;
&lt;li&gt;Generating investigation summaries.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Evidence Before Intelligence
&lt;/h3&gt;

&lt;p&gt;An AI model can produce a convincing explanation even when the source documents don't support it. That's particularly dangerous in an investigation tool.&lt;/p&gt;

&lt;p&gt;So we designed DEAD INTERNET to distinguish three things:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Facts:&lt;/strong&gt; Information directly supported by supplied documents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hypotheses:&lt;/strong&gt; Possible interpretations and relationships that require further investigation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unknowns:&lt;/strong&gt; Questions that the available evidence cannot answer.&lt;/p&gt;

&lt;p&gt;AI responses include source filenames and relevant excerpts. The backend validates citation filenames, artifact scope, and quoted text against the supplied evidence.&lt;/p&gt;

&lt;p&gt;AI-generated interpretations do not automatically become verified clues or timeline events.&lt;/p&gt;

&lt;p&gt;If Ollama is unavailable, the application reports the failure instead of pretending that an investigation succeeded.&lt;/p&gt;

&lt;p&gt;The deterministic investigation workflow continues to work without AI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Handling Uploaded Archives Safely
&lt;/h2&gt;

&lt;p&gt;Allowing users to upload old websites and documents introduces another challenge: untrusted files.&lt;/p&gt;

&lt;p&gt;We wanted the application to treat uploaded content as evidence, not executable code.&lt;/p&gt;

&lt;p&gt;Some of the precautions include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;File-type and size validation.&lt;/li&gt;
&lt;li&gt;Limits on document count and total upload size.&lt;/li&gt;
&lt;li&gt;ZIP path-traversal protection.&lt;/li&gt;
&lt;li&gt;Rejection of encrypted, nested, and unsupported archive members.&lt;/li&gt;
&lt;li&gt;In-memory ZIP processing rather than extracting arbitrary files to disk.&lt;/li&gt;
&lt;li&gt;HTML displayed as escaped source text rather than an executable webpage.&lt;/li&gt;
&lt;li&gt;Separate investigations with archive-scoped artifact access.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Uploaded content stays in the locally configured SQLite database. When AI analysis is requested, relevant excerpts are sent to the configured Ollama service.&lt;/p&gt;

&lt;p&gt;This is a local-first design, not a claim of complete security. The current MVP does not include authentication, encryption at rest, or multi-user access controls.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Makes This Project Interesting?
&lt;/h2&gt;

&lt;p&gt;We didn't want DEAD INTERNET to become another AI wrapper where the entire experience depends on a model generating text.&lt;/p&gt;

&lt;p&gt;The investigation engine and the AI investigator have different responsibilities.&lt;/p&gt;

&lt;p&gt;The deterministic system manages evidence, progress, predefined solutions, and reports.&lt;/p&gt;

&lt;p&gt;The AI helps explore possible interpretations of the available documents.&lt;/p&gt;

&lt;p&gt;That distinction means users can still complete investigations without installing a model.&lt;/p&gt;

&lt;p&gt;It also makes the project easier to extend without turning every feature into an AI-generated response.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing And Verification
&lt;/h2&gt;

&lt;p&gt;The project includes a focused backend test suite covering:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Archive and artifact retrieval.&lt;/li&gt;
&lt;li&gt;File validation and safe ZIP extraction.&lt;/li&gt;
&lt;li&gt;Clue discovery and timeline construction.&lt;/li&gt;
&lt;li&gt;Independent investigation state.&lt;/li&gt;
&lt;li&gt;AI evidence validation and missing citations.&lt;/li&gt;
&lt;li&gt;Ollama connection failures and timeouts.&lt;/li&gt;
&lt;li&gt;Investigation report generation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The verification commands are:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\.venv\Scripts\python.exe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pytest&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;tests&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-q&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="n"&gt;npm.cmd&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--prefix&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;frontend&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;run&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;build&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Ollama failure tests use mocked transport, so they don't require a running model. A separate live-model smoke test is needed to evaluate actual inference quality.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;There is still plenty of room to take this further.&lt;/p&gt;

&lt;p&gt;Some areas we'd like to explore:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;More advanced document parsing and metadata extraction.&lt;/li&gt;
&lt;li&gt;Better retrieval across larger collections of documents.&lt;/li&gt;
&lt;li&gt;Stronger claim-level evidence verification.&lt;/li&gt;
&lt;li&gt;More sophisticated relationships between artifacts.&lt;/li&gt;
&lt;li&gt;Archive backup, deletion, and retention controls.&lt;/li&gt;
&lt;li&gt;More sample investigations with richer narratives.&lt;/li&gt;
&lt;li&gt;Improved evaluation of local models on evidence-based questions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to make digital archaeology more interactive while keeping the underlying evidence inspectable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Team Credits
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;DEAD INTERNET&lt;/strong&gt; is a collaborative project built with my friend &lt;a href="https://dev.to/pranitha_prakash_6c8f7ad7"&gt;@pranitha_prakash_6c8f7ad7&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We worked on bringing together local AI inference, preserved digital archives, evidence-based investigations, and an interface that turns exploring forgotten internet fragments into something interactive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Project Repository:&lt;/strong&gt; &lt;a href="https://github.com/abirami-prabhakar/Dead-Internet" rel="noopener noreferrer"&gt;DEAD INTERNET on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project is open source under the MIT License. Contributions, feedback, and ideas for exploring digital archaeology are welcome.&lt;/p&gt;

&lt;p&gt;Built with React, FastAPI, SQLite, Ollama, and a little curiosity about the parts of the internet we leave behind.&lt;/p&gt;

&lt;p&gt;🕸️&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>LazyLecture 🦥: Because Making Study Notes Shouldn't Be a Whole Study Session</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Thu, 22 Oct 2026 09:39:55 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/lazylecture-because-making-study-notes-shouldnt-be-a-whole-study-session-19f2</link>
      <guid>https://dev.to/abirami_prabhakar/lazylecture-because-making-study-notes-shouldnt-be-a-whole-study-session-19f2</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;&lt;/em&gt;&lt;br&gt;
&lt;a href="https://dev.to/t/devchallenge"&gt;#devchallenge&lt;/a&gt; &lt;a href="https://dev.to/t/hf26challenge"&gt;#hf26challenge&lt;/a&gt; &lt;a href="https://dev.to/t/opensource"&gt;#opensource&lt;/a&gt; &lt;a href="https://dev.to/t/ai"&gt;#ai&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What We Built
&lt;/h2&gt;

&lt;p&gt;We've all had that moment when we sit down to study, open a huge PDF, and somehow spend the next 30 minutes deciding what to study instead of actually studying.&lt;/p&gt;

&lt;p&gt;Summarising chapters, picking out important concepts, making flashcards, creating practice questions... the preparation itself becomes another task on the to-do list.&lt;/p&gt;

&lt;p&gt;So we built &lt;strong&gt;LazyLecture 🦥&lt;/strong&gt;, a local AI study assistant that turns lecture notes into a ready-to-use revision pack.&lt;/p&gt;

&lt;p&gt;The idea was pretty simple: &lt;strong&gt;spend less time preparing to study and more time actually studying.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Drop in a text-based PDF or TXT file, choose how much revision you're aiming for, and LazyLecture generates study material based on your notes.&lt;/p&gt;

&lt;h3&gt;
  
  
  One tool, different study moods
&lt;/h3&gt;

&lt;p&gt;Not every study session needs to become a full academic comeback.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Quick Study:&lt;/strong&gt; A concise summary and exactly five key concepts. No flashcards, no quizzes, just a starting point.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;5-minute pack:&lt;/strong&gt; A short summary and a small set of concepts for a quick review.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;15-minute pack:&lt;/strong&gt; More detailed revision material, with flashcards and a practice quiz.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;30-minute pack:&lt;/strong&gt; A larger pack with additional concepts, flashcards, and practice questions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can flip through flashcards, reveal answers, take quizzes, check your score and explanations, copy your revision notes, and download the entire pack as Markdown.&lt;/p&gt;

&lt;p&gt;The session lengths control how much material gets generated. They aren't promises that the AI will finish generating everything in five minutes. Even artificial intelligence hasn't negotiated that kind of contract with time yet.&lt;/p&gt;

&lt;p&gt;And yes, there's a sleepy sloth and a lavender-themed interface. If the whole point is to make studying feel a little less overwhelming, the interface shouldn't feel like another assignment.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;LazyLecture runs on &lt;strong&gt;Qwen2.5 1.5B through Ollama&lt;/strong&gt;, so the AI inference happens locally instead of relying on a hosted AI API.&lt;/p&gt;

&lt;p&gt;Here's the flow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Upload a text-based PDF or TXT file.&lt;/li&gt;
&lt;li&gt;The FastAPI backend extracts and prepares the text.&lt;/li&gt;
&lt;li&gt;The selected study format determines the prompt and output limits.&lt;/li&gt;
&lt;li&gt;The local model generates structured study material.&lt;/li&gt;
&lt;li&gt;Pydantic validates the response before the frontend displays it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The frontend is built with React, TypeScript, Vite, and CSS. PyMuPDF handles PDF text extraction, while HTTPX connects the backend to Ollama.&lt;/p&gt;

&lt;p&gt;We also added tests for the backend and frontend, because an AI-generated study pack is considerably less useful if the application falls apart while trying to display it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Quick Study is the default
&lt;/h3&gt;

&lt;p&gt;One thing we paid attention to was keeping the workload manageable.&lt;/p&gt;

&lt;p&gt;A small local model doesn't need to generate an entire textbook's worth of content every time someone wants to revise a single topic. Quick Study uses a smaller output budget and makes one inference request without automatic retries.&lt;/p&gt;

&lt;p&gt;For longer documents, the backend selects excerpts before sending text to the model. This helps keep the input manageable, but it can leave out important information. The application warns users when this happens.&lt;/p&gt;

&lt;p&gt;We also avoided fake progress percentages. The interface shows elapsed time and a waiting indicator instead of pretending we know exactly how much work the model has completed.&lt;/p&gt;

&lt;p&gt;Small decisions, but they make the experience more honest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Here's a look at LazyLecture in action.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Start with your notes
&lt;/h3&gt;

&lt;p&gt;Upload a text-based PDF or TXT file and choose your study format.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgi3h0i1anu5mjqd8yo35.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgi3h0i1anu5mjqd8yo35.png" alt="LazyLecture upload interface" width="800" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Get a quick revision summary
&lt;/h3&gt;

&lt;p&gt;Start with a concise summary and five key concepts instead of trying to digest everything at once.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5v56xo9sa0mfz1u6eqx9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5v56xo9sa0mfz1u6eqx9.png" alt="LazyLecture quick study results" width="800" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Revise with flashcards
&lt;/h3&gt;

&lt;p&gt;Full study packs include interactive cards that let you reveal answers and work through the material at your own pace.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk6wxd8en12v63kwf4g2o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk6wxd8en12v63kwf4g2o.png" alt="LazyLecture flashcards" width="800" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Test yourself
&lt;/h3&gt;

&lt;p&gt;Take a practice quiz, check your score, review the explanations, and save your study pack for later.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc333xyhutpuim40clguw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc333xyhutpuim40clguw.png" alt="LazyLecture quiz interface" width="799" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Generated content should always be checked against the original notes. LazyLecture helps with revision; it doesn't guarantee factual accuracy or predict exam questions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Open-Source AI Part
&lt;/h2&gt;

&lt;p&gt;We wanted the model to be part of the actual product, not just an API call hidden behind a nice interface.&lt;/p&gt;

&lt;p&gt;Using an open-weight model with Ollama means users can generate their study material locally after setup, without needing a paid cloud AI API or an account with an external AI provider.&lt;/p&gt;

&lt;p&gt;That also means lecture notes can stay on the user's machine during the normal local workflow, rather than being sent to a hosted AI service for inference.&lt;/p&gt;

&lt;p&gt;There's something useful about being able to inspect the prompts, change the model, experiment with output limits, and modify the validation logic yourself. The AI isn't an untouchable black box that the application depends on someone else to operate.&lt;/p&gt;

&lt;p&gt;We haven't verified fully disconnected operation yet, so that's still something we'd like to test properly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things We Learned Along the Way
&lt;/h2&gt;

&lt;p&gt;Building this wasn't just about getting a model to return a summary.&lt;/p&gt;

&lt;p&gt;We had to think about how much text to send to a small model, how to handle malformed JSON, how to make different study formats genuinely useful, and how to communicate waiting time without inventing progress.&lt;/p&gt;

&lt;p&gt;We also learned that &lt;strong&gt;valid output isn't necessarily correct output&lt;/strong&gt;. Pydantic can validate the structure of a response, but it can't guarantee that every explanation or flashcard accurately reflects the source material.&lt;/p&gt;

&lt;p&gt;There are still things we'd like to improve:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better source citations so users can trace generated content back to their notes.&lt;/li&gt;
&lt;li&gt;Stronger grounding checks to reduce hallucinations.&lt;/li&gt;
&lt;li&gt;OCR support for scanned PDFs.&lt;/li&gt;
&lt;li&gt;Better handling of long documents without missing useful content.&lt;/li&gt;
&lt;li&gt;Cancellable generation for longer requests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There's plenty left to explore, which is kind of the fun part of building with open-source AI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Built for Slow and Steady
&lt;/h2&gt;

&lt;p&gt;For us, &lt;em&gt;Slow and Steady&lt;/em&gt; meant making the first step of studying easier, not trying to automate the entire learning process.&lt;/p&gt;

&lt;p&gt;LazyLecture doesn't replace understanding a topic or putting in the work. It just removes some of the repetitive preparation that can make getting started harder than it needs to be.&lt;/p&gt;

&lt;p&gt;Sometimes, a manageable five-minute revision session is better than another perfectly organised study plan that never gets used.&lt;/p&gt;

&lt;p&gt;And sometimes, the sloth has a point.&lt;/p&gt;

&lt;h2&gt;
  
  
  Team Credits
&lt;/h2&gt;

&lt;p&gt;LazyLecture is a collaborative project built with my friend &lt;a href="https://dev.to/pranitha_prakash_6c8f7ad7"&gt;@pranitha_prakash_6c8f7ad7&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We worked on bringing together local AI inference, structured study-pack generation, and an interface that makes revision feel a little less intimidating.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Project repository:&lt;/strong&gt; &lt;a href="https://github.com/abirami-prabhakar/LazyLecture" rel="noopener noreferrer"&gt;LazyLecture on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project is open source under the MIT License. Contributions, feedback, and ideas for improving the study experience are welcome.&lt;/p&gt;

&lt;p&gt;Built with React, FastAPI, Ollama, and a small model doing its best to help us survive our notes.&lt;/p&gt;

&lt;p&gt;🦥&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>opensource</category>
    </item>
    <item>
      <title>FixFlow: Turning Messy Maintenance Complaints into Actionable Tickets with Open-Source AI</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Sun, 18 Oct 2026 17:23:15 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/fixflow-turning-messy-maintenance-complaints-into-actionable-tickets-with-open-source-ai-2ceg</link>
      <guid>https://dev.to/abirami_prabhakar/fixflow-turning-messy-maintenance-complaints-into-actionable-tickets-with-open-source-ai-2ceg</guid>
      <description>&lt;p&gt;FixFlow: Turning Messy Maintenance Complaints into Actionable Tickets with Open-Source AI&lt;/p&gt;

&lt;p&gt;This is a submission for the "Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle" (&lt;a href="https://dev.to/challenges/hacktoberfest-week2-2026-10-12"&gt;https://dev.to/challenges/hacktoberfest-week2-2026-10-12&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;What I Built&lt;/p&gt;

&lt;p&gt;FixFlow is an AI-powered maintenance request manager designed for small hostels, PG accommodations, and property managers.&lt;/p&gt;

&lt;p&gt;Residents often report problems informally: a leaking tap, a broken light, a faulty fan, or a water supply issue. These complaints can get lost in chats, lack important details, or remain unresolved because nobody knows who is responsible.&lt;/p&gt;

&lt;p&gt;FixFlow uses the open-weight Gemma model to transform natural-language complaints into structured maintenance tickets. It extracts the issue category, summary, location, missing information, and suggested priority. When essential details are missing, it can ask follow-up questions instead of making assumptions.&lt;/p&gt;

&lt;p&gt;Managers can use a dashboard to track requests, assign staff, update statuses, identify possible duplicate tickets, and monitor maintenance activity.&lt;/p&gt;

&lt;p&gt;The goal is simple: make maintenance easier to report, easier to manage, and harder to forget.&lt;/p&gt;

&lt;p&gt;Who could benefit? Small hostel owners, PG operators, student accommodation managers, and property maintenance teams that need a lightweight alternative to complicated property management systems.&lt;/p&gt;

&lt;p&gt;Screenshot &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzcvb3mvg61wuludgv0ni.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzcvb3mvg61wuludgv0ni.jpg" alt=" " width="800" height="406"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgv28b7h6fq1jwp5exkx2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgv28b7h6fq1jwp5exkx2.jpg" alt=" " width="800" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Code&lt;/p&gt;

&lt;p&gt;GitHub repository: &lt;a href="https://github.com/abirami-prabhakar/flowfix" rel="noopener noreferrer"&gt;https://github.com/abirami-prabhakar/flowfix&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project is designed around a simple Python and Streamlit application, with SQLite for persistence and Gemma through Ollama for local inference.&lt;/p&gt;

&lt;p&gt;How I Built It&lt;/p&gt;

&lt;p&gt;I chose a deliberately lightweight architecture:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Gemma + Ollama: Extracts structured information from unstructured maintenance complaints using an open-weight model running locally.&lt;/li&gt;
&lt;li&gt;Python: Handles the application logic, input processing, validation, and ticket workflow.&lt;/li&gt;
&lt;li&gt;Streamlit: Provides the resident request form and manager dashboard.&lt;/li&gt;
&lt;li&gt;SQLite: Stores tickets and their status history.&lt;/li&gt;
&lt;li&gt;Pydantic: Validates AI-generated structured output before it is accepted by the application.&lt;/li&gt;
&lt;li&gt;Sentry: Supports error monitoring and performance tracing, where configured.&lt;/li&gt;
&lt;li&gt;Render: A potential deployment target, subject to the requirements of running Ollama and providing persistent storage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The AI is not treated as an unquestionable decision-maker. Its output must be validated, missing details must remain visible, and potentially urgent complaints should be flagged for human review.&lt;/p&gt;

&lt;p&gt;I also designed the workflow around predictable failure handling. Malformed model responses, inference failures, and duplicate-looking requests should not silently produce unreliable records. A deterministic demo mode can make testing possible without requiring a live model for every test.&lt;/p&gt;

&lt;p&gt;Why Does Open Innovation Matter?&lt;/p&gt;

&lt;p&gt;Open innovation makes the core AI functionality more accessible and gives developers control over how models run and how data moves through an application.&lt;/p&gt;

&lt;p&gt;With Gemma running locally through Ollama, FixFlow can process complaints without sending their contents to a hosted AI inference API. This is particularly useful for accommodation providers handling room information and potentially sensitive resident reports.&lt;/p&gt;

&lt;p&gt;It also makes experimentation easier. Developers can change the model, inspect its behavior, adjust prompts, and test structured extraction against realistic complaints without being locked into one proprietary inference service.&lt;/p&gt;

&lt;p&gt;Open-weight models do not automatically guarantee privacy or reliability. Those still depend on how the application is deployed, how data is stored, and how the model's output is validated. But they give smaller teams more control over those decisions.&lt;/p&gt;

&lt;p&gt;That is what makes this approach interesting to me: useful AI should not require every small organization to build its workflow around a closed API.&lt;/p&gt;

&lt;p&gt;Prize Categories&lt;/p&gt;

&lt;p&gt;Open-source AI / Gemma, where eligible under the challenge's official category rules.&lt;/p&gt;

&lt;h3&gt;
  
  
  🤝 Team Credits
&lt;/h3&gt;

&lt;p&gt;FixFlow is a collaborative project built with my friend &lt;a href="https://dev.to/pranitha_prakash_6c8f7ad7"&gt;https://dev.to/pranitha_prakash_6c8f7ad7&lt;/a&gt; (&lt;a class="mentioned-user" href="https://dev.to/pranitha_prakash_6c8f7ad7"&gt;@pranitha_prakash_6c8f7ad7&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Together, we explored how AI can transform everyday maintenance complaints into structured, actionable maintenance tickets using open-source AI tools.&lt;/p&gt;

&lt;p&gt;🔗 &lt;em&gt;Project Repository:&lt;/em&gt; &lt;a href="https://github.com/abirami-prabhakar/flowfix" rel="noopener noreferrer"&gt;https://github.com/abirami-prabhakar/flowfix&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>RideCircle: Finding Someone to Ride With Shouldn’t Be the Hard Part</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Sun, 11 Oct 2026 17:50:19 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/ridecircle-finding-someone-to-ride-with-shouldnt-be-the-hard-part-14gk</link>
      <guid>https://dev.to/abirami_prabhakar/ridecircle-finding-someone-to-ride-with-shouldnt-be-the-hard-part-14gk</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week1-2026-10-05"&gt;Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Sometimes the hardest part of going for a ride happens &lt;strong&gt;before you even get on the bike&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Where should you go? Is there anyone nearby who wants to join? Will their idea of an “easy ride” leave you struggling to keep up?&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;RideCircle&lt;/strong&gt; to help answer those questions.&lt;/p&gt;

&lt;p&gt;It’s a cycling discovery app where you can &lt;strong&gt;find nearby riders with compatible preferences, explore destinations and routes, and organize group rides&lt;/strong&gt;. I started with Chennai, using real destinations such as &lt;strong&gt;Marina Beach&lt;/strong&gt; and &lt;strong&gt;Semmozhi Poonga&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can set your pace, experience level, preferred ride distance, availability, and interests. RideCircle uses those preferences to help you find people you could comfortably ride with—and &lt;strong&gt;explains why a match appears&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can also:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Explore the map:&lt;/strong&gt; browse destinations, cyclists, routes, and events.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search your area:&lt;/strong&gt; find results within the map area you’re viewing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Organize a ride:&lt;/strong&gt; choose a meeting point and set a participant limit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Join a group:&lt;/strong&gt; mark yourself interested or attending, and see who’s coming.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Control your visibility:&lt;/strong&gt; keep your profile private until you choose to make it discoverable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The app is for someone who wants company on a weekend ride, a beginner looking for a relaxed group, or a cyclist who wants somewhere different to explore.&lt;/p&gt;

&lt;p&gt;Cycling apps already exist. My focus here is the decision before the ride: &lt;strong&gt;finding a place, a compatible person, and a time that works&lt;/strong&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The goal is to make planning short enough that you actually leave the house.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Screenshots &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffs2eg0rtb9x8l2g7nezz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffs2eg0rtb9x8l2g7nezz.png" alt=" " width="800" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0iwz780j6wlwi8dz2be8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0iwz780j6wlwi8dz2be8.png" alt=" " width="799" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7g7k36juc06ykaoek2pv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7g7k36juc06ykaoek2pv.png" alt=" " width="799" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqvquf9o4z3l3zli8x4e3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqvquf9o4z3l3zli8x4e3.png" alt=" " width="799" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;RideCircle currently runs &lt;strong&gt;locally with Docker&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The main flow takes you through creating a profile, exploring the map, finding compatible cyclists, and organizing a group ride.&lt;/p&gt;

&lt;p&gt;The demo includes &lt;strong&gt;clearly labeled fictional riders and sample events&lt;/strong&gt; so the discovery experience can be explored without needing an existing community. The destinations are real, and the bundled cycling route includes its data source.&lt;/p&gt;

&lt;p&gt;To run it yourself, follow the environment setup in the repository README, then run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;--build&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Open &lt;strong&gt;&lt;a href="http://localhost:5173" rel="noopener noreferrer"&gt;http://localhost:5173&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The README also includes instructions for enabling &lt;strong&gt;local Gemma inference&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;The source code is available on &lt;strong&gt;GitHub&lt;/strong&gt;:&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/abirami-prabhakar" rel="noopener noreferrer"&gt;
        abirami-prabhakar
      &lt;/a&gt; / &lt;a href="https://github.com/abirami-prabhakar/Ridecircle" rel="noopener noreferrer"&gt;
        Ridecircle
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;RideCircle&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;A local MVP for finding compatible cyclists, exploring real destinations, and organizing group rides. React + TypeScript, FastAPI, PostgreSQL/PostGIS, and optional local Gemma inference through Ollama.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Start the app&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;Install Docker Desktop with its Linux engine enabled. From this directory:&lt;/p&gt;

&lt;div class="highlight highlight-source-powershell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-c1"&gt;Copy-Item&lt;/span&gt; .env.example .env
&lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; Replace JWT_SECRET with a random secret of at least 32 characters.&lt;/span&gt;
docker compose up &lt;span class="pl-k"&gt;-&lt;/span&gt;d &lt;span class="pl-k"&gt;--&lt;/span&gt;build&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Open &lt;strong&gt;&lt;a href="http://localhost:5173" rel="nofollow noopener noreferrer"&gt;http://localhost:5173&lt;/a&gt;&lt;/strong&gt;. Create your own account, set your preferences, then explore. API documentation: &lt;strong&gt;&lt;a href="http://localhost:8011/docs" rel="nofollow noopener noreferrer"&gt;http://localhost:8011/docs&lt;/a&gt;&lt;/strong&gt;. PostGIS is bound to localhost port &lt;strong&gt;54329&lt;/strong&gt;. Services are local only. To stop them, run &lt;code&gt;docker compose down&lt;/code&gt;; the database volume survives. Do not use &lt;code&gt;down -v&lt;/code&gt; unless you intend to erase your local database.&lt;/p&gt;
&lt;p&gt;The seed contains three sourced Chennai destinations, a real provider-calculated “Garden to coast” bicycle route, four explicitly fictional sample cyclists, and four sample events. Sample people and events are labeled and can be hidden…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/abirami-prabhakar/Ridecircle" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;&lt;a href="https://github.com/abirami-prabhakar/Ridecircle" rel="noopener noreferrer"&gt;&lt;strong&gt;Explore the RideCircle repository →&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project contains the frontend, backend, database migrations, seed data, tests, and Docker configuration.&lt;/p&gt;

&lt;p&gt;I’ve documented the local setup, where the map and route data come from, and the parts that are still outside the scope of this prototype.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;RideCircle uses:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;th&gt;Its role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;React + TypeScript&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Application interface&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Leaflet&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Interactive map&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;FastAPI&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Backend API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;PostgreSQL + PostGIS&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Data storage and geographic searches&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Gemma 3 through Ollama&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Local AI search integration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Docker Compose&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Local application setup&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Turning a request into search preferences
&lt;/h3&gt;

&lt;p&gt;The AI integration addresses a small but useful problem: &lt;strong&gt;turning a cycling request into search preferences&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Find beginner cyclists who enjoy relaxed rides on Sunday mornings.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The Gemma integration asks the model to return structured preferences, such as &lt;strong&gt;experience level, pace, day, and time&lt;/strong&gt;. The backend validates that output before using it to search the database.&lt;/p&gt;

&lt;p&gt;The model’s job stops at interpreting the request. &lt;strong&gt;Location filtering, compatibility checks, privacy rules, and event capacity&lt;/strong&gt; are handled by the application.&lt;/p&gt;

&lt;p&gt;That boundary matters. An invented cyclist or destination would make the app frustrating to use. Search results need to come from &lt;strong&gt;records that actually exist&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keeping keyword mode transparent
&lt;/h3&gt;

&lt;p&gt;The project also includes a clearly labeled &lt;strong&gt;keyword mode&lt;/strong&gt; for running the app before downloading a model. &lt;strong&gt;That is the mode used in the current local deployment.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It recognizes explicit terms such as “beginner,” “Sunday,” and “relaxed,” but has more limited interpretation than the Gemma integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Grounding the map in real data
&lt;/h3&gt;

&lt;p&gt;For the map, I used &lt;strong&gt;OpenStreetMap data and source-backed destinations&lt;/strong&gt;. Route geometry comes from a bicycle routing provider rather than being generated by the language model.&lt;/p&gt;

&lt;p&gt;Privacy also shaped the implementation. &lt;strong&gt;Public cyclist results omit email addresses and exact stored coordinates.&lt;/strong&gt; Rider markers use broad neighborhood reference points, while event meeting points are public locations chosen by organizers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;For RideCircle, open innovation makes the project &lt;strong&gt;easier to run, inspect, and change&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;With Gemma running through Ollama, search interpretation can happen on the user’s machine &lt;strong&gt;without sending the search text to a hosted model API&lt;/strong&gt;. That also gives me room to experiment with prompts and model sizes without paying for every inference request.&lt;/p&gt;

&lt;p&gt;It doesn’t make the whole application offline. &lt;strong&gt;Map tiles and live route calculations still need internet access.&lt;/strong&gt; But it gives me control over where the AI part runs.&lt;/p&gt;

&lt;p&gt;The open tools around the model matter just as much. &lt;strong&gt;PostGIS&lt;/strong&gt; handles geographic searches, &lt;strong&gt;Leaflet&lt;/strong&gt; makes the map interactive, and &lt;strong&gt;OpenStreetMap&lt;/strong&gt; provides the map data. Together, they let me build a useful local prototype without a paid mapping subscription.&lt;/p&gt;

&lt;p&gt;A closed API could also interpret cycling requests. What this approach gives me is the ability to &lt;strong&gt;run that part locally, inspect the surrounding code, and adapt it&lt;/strong&gt; as the project develops.&lt;/p&gt;

&lt;p&gt;That feels especially relevant for a community app. Someone should be able to take the project, add destinations in their own city, adjust the matching rules, and build something that fits their local cycling community.&lt;/p&gt;

&lt;h3&gt;
  
  
  What comes next?
&lt;/h3&gt;

&lt;p&gt;RideCircle is still an &lt;strong&gt;MVP&lt;/strong&gt;. It hasn’t yet been validated through an actual group ride, and the sample profiles aren’t evidence of an active community.&lt;/p&gt;

&lt;p&gt;The next useful test is getting a few real cyclists to try it and seeing whether it helps them arrange a ride.&lt;/p&gt;

&lt;p&gt;That’s the outcome I care about: &lt;strong&gt;a plan that turns into people getting on their bikes&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Digit Manipulation</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Wed, 08 Apr 2026 05:42:51 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/digit-manipulation-136l</link>
      <guid>https://dev.to/abirami_prabhakar/digit-manipulation-136l</guid>
      <description>&lt;p&gt;&lt;strong&gt;//Sum of Digits&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;12345&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
         &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
         &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;){&lt;/span&gt;
            &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="o"&gt;}&lt;/span&gt;
        &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;//Reverse a digit&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;12345&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;rem&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;){&lt;/span&gt;
             &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
             &lt;span class="n"&gt;rem&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rem&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
             &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;    
         &lt;span class="o"&gt;}&lt;/span&gt;
        &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rem&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;//Multiplying all didgits&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2546987&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;){&lt;/span&gt;
            &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;*(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="o"&gt;}&lt;/span&gt;
        &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"The Multiplication of Digits is"&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;// Max of all didgits&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;67854095&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
       &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;max&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
       &lt;span class="k"&gt;while&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;){&lt;/span&gt;
        &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;lastdigit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt; &lt;span class="n"&gt;max&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;lastdigit&lt;/span&gt;&lt;span class="o"&gt;){&lt;/span&gt;
            &lt;span class="n"&gt;max&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;lastdigit&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="o"&gt;}&lt;/span&gt;
        &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
       &lt;span class="o"&gt;}&lt;/span&gt;
       &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"The largest digit "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Armstrong Number - finding if the number is a armstrong number by using manual multiplication for finding the power&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1634&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;aNum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;bcup&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;ld&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;aNum&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ld&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;ld&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;ld&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;ld&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bcup&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;aNum&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Is an Armstrong Number"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Is NOT an Armstrong Number"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;to find power of a number&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;power&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;power&lt;/span&gt; &lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++){&lt;/span&gt;
            &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;*=&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt;
        &lt;span class="o"&gt;}&lt;/span&gt;
        &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Power of give number is "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Armstrong Number using a loop to find the power of number&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;
&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1634&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;aNum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;bcup&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;){&lt;/span&gt;    
                &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="o"&gt;++;&lt;/span&gt;
                &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;/=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="o"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;bcup&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;){&lt;/span&gt;
                &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;ld&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
                &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;pow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
                &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++){&lt;/span&gt;
                    &lt;span class="n"&gt;pow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pow&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;ld&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
                &lt;span class="o"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;aNum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;aNum&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;pow&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
                &lt;span class="n"&gt;num&lt;/span&gt; &lt;span class="o"&gt;/=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="o"&gt;}&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt; &lt;span class="n"&gt;aNum&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;bcup&lt;/span&gt;&lt;span class="o"&gt;){&lt;/span&gt;
                &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Is a Armstrong Number"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
            &lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
                &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Is NOT a Armstrong Number"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
            &lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>java</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Setup a DNS hosted zone in Route53 in AWS.</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Sun, 29 Mar 2026 16:56:27 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/setup-a-dns-hosted-zone-in-route53-in-aws-anm</link>
      <guid>https://dev.to/abirami_prabhakar/setup-a-dns-hosted-zone-in-route53-in-aws-anm</guid>
      <description>&lt;p&gt;When I first tried setting up DNS in Amazon Web Services Route 53, I thought it would be straightforward—just create a hosted zone, add a record, and my website would magically work. I created a hosted zone with a random name, added an A record pointing to my EC2 public IP, and felt pretty confident.But then I reliazed it doesnt work as simple as I thought it will work like .&lt;/p&gt;

&lt;p&gt;No matter what I tried, the domain wouldn’t open in the browser. That’s when I realized I had completely missed something basic—I didn’t even own a domain name. I had been treating Route 53 like it could create a website address for me, when in reality, it only manages DNS for domains that already exist.&lt;/p&gt;

&lt;p&gt;That moment was frustrating, but also a turning point. I finally understood how DNS actually works: you need a registered domain first, and then you connect it to Route 53 using nameservers. Without that, there’s nothing for DNS to resolve.&lt;/p&gt;

&lt;p&gt;In the end, I learned two important things. First, Route 53 is not a domain provider—it’s a DNS service. And second, if you don’t have a domain, you can still test your app using the EC2 public IP or DNS, which works perfectly for development.&lt;/p&gt;

&lt;p&gt;It was a small mistake, but it made the whole concept much clearer. Sometimes, not having something—in this case, a domain—teaches you more than having everything set up correctly from the start.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Creating a hosted Zone in Route 53&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F991xznnt0emc15uh64k2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F991xznnt0emc15uh64k2.png" alt=" " width="800" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Retriving the public IP of EC2 inatance to create a record&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3qruux9z63lajqmrm1nt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3qruux9z63lajqmrm1nt.png" alt=" " width="800" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Creating Records&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxhr9fnccfoxqi6ynz83d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxhr9fnccfoxqi6ynz83d.png" alt=" " width="800" height="229"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Users, Roles, Groups</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Sun, 29 Mar 2026 16:30:10 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/users-roles-groups-4hca</link>
      <guid>https://dev.to/abirami_prabhakar/users-roles-groups-4hca</guid>
      <description>&lt;p&gt;Think of a &lt;strong&gt;user&lt;/strong&gt; as an individual person who logs into the database and does work. A &lt;strong&gt;role&lt;/strong&gt; is like a set of permissions — what actions are allowed, like reading or updating data. Instead of giving permissions to each user one by one, we create &lt;strong&gt;groups (roles)&lt;/strong&gt; and assign permissions to them, then simply add users to those groups. This way, managing access becomes much easier, because changing the role automatically updates permissions for everyone in it.lets look into some examples to understand better&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Task 1: Create a login role report_user that can only read from the film table.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;report_user&lt;/span&gt; &lt;span class="k"&gt;WITH&lt;/span&gt; &lt;span class="n"&gt;LOGIN&lt;/span&gt; &lt;span class="n"&gt;PASSWORD&lt;/span&gt; &lt;span class="s1"&gt;'pass123'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;film&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;report_user&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GRANT is used to grant access to use commands to roles &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Task 2: Now try to access customer table. When report_user tries to query customer and gets permission denied. Fix it.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;customer&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;Error&lt;/span&gt; &lt;span class="n"&gt;prompted&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;customer&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;report_user&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;as user was initially given access only yto film table, he was unable to access the customer table&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Task 3: Allow report_user to see only customer_id, first_name, last_name of the customer table.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;REVOKE&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;customer&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;report_user&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;customer_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;first_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;last_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;customer&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;report_user&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;REVOKE is used to disable a user from doing certain commands in a table&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Task 4: Create support_user who can, SELECT from customer, UPDATE only email column, Cannot DELETE&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;support_user&lt;/span&gt; &lt;span class="k"&gt;WITH&lt;/span&gt; &lt;span class="n"&gt;LOGIN&lt;/span&gt; &lt;span class="n"&gt;PASSWORD&lt;/span&gt; &lt;span class="s1"&gt;'pass123'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;customer&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;support_user&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;customer&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;support_user&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;REVOKE&lt;/span&gt; &lt;span class="k"&gt;DELETE&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;customer&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;support_user&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Task 5: Remove SELECT access on film from report_user.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;REVOKE&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;film&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;report_user&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Task 6: Create readonly_group that has SELECT on all tables.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;readonly_group&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt; &lt;span class="n"&gt;TABLES&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="k"&gt;SCHEMA&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;readonly_group&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Task 7: Create analyst1 and analyst2 and add them to readonly_group.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;analyst1&lt;/span&gt; &lt;span class="k"&gt;WITH&lt;/span&gt; &lt;span class="n"&gt;LOGIN&lt;/span&gt; &lt;span class="n"&gt;PASSWORD&lt;/span&gt; &lt;span class="s1"&gt;'pass123'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;analyst2&lt;/span&gt; &lt;span class="k"&gt;WITH&lt;/span&gt; &lt;span class="n"&gt;LOGIN&lt;/span&gt; &lt;span class="n"&gt;PASSWORD&lt;/span&gt; &lt;span class="s1"&gt;'pass123'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="n"&gt;readonly_group&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;analyst1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="n"&gt;readonly_group&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;analyst2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>postgressql</category>
      <category>dbms</category>
    </item>
    <item>
      <title>Idempotency Situation</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Sun, 29 Mar 2026 16:08:04 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/idempotency-situation-53bh</link>
      <guid>https://dev.to/abirami_prabhakar/idempotency-situation-53bh</guid>
      <description>&lt;p&gt;Idempotency Situation is a when Even if the same request comes multiple times,it should behave like it happened only once this often happens in payment transactions due to network issues can be cause loss to customer if it is not handled properly. &lt;/p&gt;

&lt;p&gt;This can be solves by keeping track of transactions and every bank transaction has a transaction ID and even if retry is given the trasaction takes place only once&lt;/p&gt;

&lt;p&gt;The trasaction table keep a record all the amount that is transferred from a user to another user&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="nb"&gt;SERIAL&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;sender&lt;/span&gt; &lt;span class="nb"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;receiver&lt;/span&gt; &lt;span class="nb"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;amount&lt;/span&gt; &lt;span class="nb"&gt;INT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;idempotency_key&lt;/span&gt; &lt;span class="nb"&gt;TEXT&lt;/span&gt; &lt;span class="k"&gt;UNIQUE&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;how it works&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;BEGIN&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sender&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;receiver&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;idempotency_key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Alice'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Bob'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'txn_101'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="n"&gt;accounts&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Alice'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="n"&gt;accounts&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Bob'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;COMMIT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The data is entered before every transaction and then the query is updated&lt;/p&gt;

&lt;p&gt;now, when the same transaction with the same idempotency_key is there for another query , an error is prompted because duplicate key values violates the unique constraint of the attribute&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;transactions&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sender&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;receiver&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;idempotency_key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Alice'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Bob'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'txn_101'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>dbms</category>
      <category>postgres</category>
    </item>
    <item>
      <title>Consistency</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Sun, 29 Mar 2026 15:36:10 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/consistency-2ef6</link>
      <guid>https://dev.to/abirami_prabhakar/consistency-2ef6</guid>
      <description>&lt;p&gt;The consistency property in ACID, is to ensure that the transactions in queries are always in sense and all the constraints are satistfied before executing them and this in terms of wallet system can be a problem if a user tries to debit more than what is in their balance or update data in negative number and those can be stopped by being consistent&lt;/p&gt;

&lt;p&gt;Examples of such situations and how an error is prompted to maintain consistency of the data&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;the balance is updated to negative value&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="n"&gt;accounts&lt;/span&gt; 
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt; 
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Alice'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;an error is prompted&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;trying to debit more than the users balance&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="n"&gt;accounts&lt;/span&gt; 
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;2000&lt;/span&gt; 
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Bob'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;an error is prompted as cuz Bob only has balance of 500 in his account&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Changes can be COMMIT only when the data is completely logically correct&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>dbms</category>
      <category>postgressql</category>
    </item>
    <item>
      <title>Durablity</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Sun, 29 Mar 2026 15:26:45 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/durablity-pi9</link>
      <guid>https://dev.to/abirami_prabhakar/durablity-pi9</guid>
      <description>&lt;p&gt;Durability means once a transaction is successfully committed, its changes are permanently saved in the database. Yes, even when the system crashes, power failure or any other  and this relaiblity in transaction is possible in databases like postgresql by WAL( Write Ahead Logs) where Before making actual changes, they first record the transaction in a log file. This way even if the system crashes before executing, the queries can be retrieved to execute them &lt;/p&gt;

&lt;p&gt;In case of Wallet systems &lt;br&gt;
Once money is transferred and confirmed, it will always be reflected and there is No risk of losing completed transactions and records for the user&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;BEGIN&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="n"&gt;accounts&lt;/span&gt; 
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; 
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Alice'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;COMMIT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>postgressql</category>
      <category>dbms</category>
    </item>
    <item>
      <title>Atomicity</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Sun, 29 Mar 2026 15:20:05 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/atomicity-54ke</link>
      <guid>https://dev.to/abirami_prabhakar/atomicity-54ke</guid>
      <description>&lt;p&gt;Atomicity means a transaction is treated as one complete action, not separate steps. All the operations inside it must succeed together, or else none of them are applied. If something goes wrong in between, the system cancels everything and returns to the original state so no partial changes remain.&lt;/p&gt;

&lt;p&gt;Atomicity is what makes a wallet system reliable for me. I see every transfer as one complete action, not separate steps. Either the full transaction happens or nothing happens at all. If something fails in between, everything is cancelled, so no money is lost and no partial updates occurs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;BEGIN&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;initiatiing&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;transaction&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="n"&gt;detucting&lt;/span&gt; &lt;span class="n"&gt;money&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;Alice&lt;/span&gt;
&lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="n"&gt;accounts&lt;/span&gt; 
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; 
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Alice'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;making&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="n"&gt;intentionlly&lt;/span&gt; 
&lt;span class="k"&gt;UPDATE&lt;/span&gt; &lt;span class="n"&gt;accounts&lt;/span&gt; 
&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; 
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Charlie'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;user&lt;/span&gt; &lt;span class="n"&gt;Charlie&lt;/span&gt; &lt;span class="n"&gt;does&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="n"&gt;exist&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;COMMIT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Transaction does not take place and commit does not happen and rolledback&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ROLLBACK&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thus, Alice’s balance remains unchanged and No partial deduction happens, This is Atomicity&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>computerscience</category>
      <category>database</category>
      <category>sql</category>
    </item>
    <item>
      <title>Alter Tables</title>
      <dc:creator>Abirami Prabhakar</dc:creator>
      <pubDate>Sat, 28 Mar 2026 14:57:23 +0000</pubDate>
      <link>https://dev.to/abirami_prabhakar/alter-tables-1of1</link>
      <guid>https://dev.to/abirami_prabhakar/alter-tables-1of1</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. You have a table customers with a column email that currently allows NULL values. Modify the table so that future entries must always have an email.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;customer&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;COLUMN&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. In the users table, ensure that the username column is unique across all records using an ALTER statement.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;
&lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;CONSTRAINT&lt;/span&gt; &lt;span class="n"&gt;unique_username&lt;/span&gt; &lt;span class="k"&gt;UNIQUE&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;the reason we cant deal with this like previous question is because , unique is a table level property can not be alter as a column property so we add it as a constraint&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. In the products table, enforce that price must always be greater than 0 using an ALTER command.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt;
&lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;CONSTRAINT&lt;/span&gt; &lt;span class="n"&gt;price_check&lt;/span&gt; &lt;span class="k"&gt;CHECK&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;checking values can be can be updated only as a constraint&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Modify the orders table so that the status column defaults to 'pending' if no value is provided during insertion.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;orders&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;COLUMN&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="s1"&gt;'pending'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;5. Alter the employees table by adding a new column salary such that&lt;br&gt;
It cannot be NULL,It must always be greater than 10,000&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;employees&lt;/span&gt;
&lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;COLUMN&lt;/span&gt; &lt;span class="n"&gt;salary&lt;/span&gt; &lt;span class="nb"&gt;DECIMAL&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt; &lt;span class="k"&gt;CHECK&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;salary&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;10000&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;6. Modify the foreign key constraint between employees and departments so that when a department is deleted, all related employees are automatically removed.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;employees&lt;/span&gt;
&lt;span class="k"&gt;DROP&lt;/span&gt; &lt;span class="k"&gt;CONSTRAINT&lt;/span&gt; &lt;span class="n"&gt;employees_department_id_fkey&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;employees&lt;/span&gt;
&lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;FOREIGN&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;department_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;REFERENCES&lt;/span&gt; &lt;span class="n"&gt;departments&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;DELETE&lt;/span&gt; &lt;span class="k"&gt;CASCADE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;7. In the accounts table, remove an existing CHECK constraint that enforces balance &amp;gt;= 0.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;accounts&lt;/span&gt;
&lt;span class="k"&gt;DROP&lt;/span&gt; &lt;span class="k"&gt;CONSTRAINT&lt;/span&gt; &lt;span class="n"&gt;accounts_balance_check&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;8. In the payments table, ensure that the combination of user_id and transaction_id is unique using an ALTER TABLE statement.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;payments&lt;/span&gt;
&lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;CONSTRAINT&lt;/span&gt; &lt;span class="n"&gt;unique_payment&lt;/span&gt; &lt;span class="k"&gt;UNIQUE&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;transaction_id&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>postgressql</category>
      <category>dbms</category>
    </item>
  </channel>
</rss>
