Auto-Documenting Codebases Using LLMs and Language Parsers
Introduction In this blog, I want to share a documentation approach that leverages Large Language Models (LLMs) to transform a completely undocumented or partially documented codebase into a well-documented one. By combining LLMs with language-specific parsers, we can extract function definitions and send each function, along with its surrounding “context,” to the LLM for generating documentation. While the method isn’t perfect, it provides a solid starting point for automating code documentation. ...
Extracting Structured Content from PDFs Using OCR and LLM
Introduction In this post, I want to document the steps I took to parse PDFs and extract structured output using OCR and LLM. The goal is to extract structured content from PDFs and other documents with high accuracy. The results of this experiment were quite impressive. I was able to extract structured content from various documents with a high degree of accuracy. The process was straightforward, and the extracted data was well-structured and useful. ...
Automating Adhan on Your Alexa Device: A Simple Guide
Are you looking to make your Alexa device play the Adhan automatically? Here’s a simple solution Enabling Alexa Skills Firstly, enable the following Alexa skills by learning them from your Alexa app: Virtual Routine Trigger Azan (ALP Enabled) Creating a Virtual Device Next, create a virtual device by visiting the virtualsmarthome.xyz website at this link: https://www.virtualsmarthome.xyz/virtual_routine_trigger/. Link your Amazon account, and then fill in the form with the following information: Name: Adhan Time ...
Setting up Elasticsearch with Docker Compose for Indexing Files on NAS
If you have a NAS (Samba) and want to index files, Elasticsearch is an excellent solution. However, setting up Elasticsearch with Docker Compose can be a bit challenging. In this post, we will outline the necessary steps to set up Elasticsearch with Docker Compose. The desired state is Elasticsearch and Kibana to get a web interface to manage users/roles/indexes. In Elasticsearch version 7.x, you need to take the following steps: ...
Personal Finance
One fine day a throught came by that its been 6 Years since I started working, and I have not given enough attention on my financial situation. no financial investments or goals. Initially I thougt I can live off a excel sheet where I can set up my earnings, expenses and goals and then see how I’m doing. but things got complicated, when I wanted to increase earning yearly, and based on that I wanted to project the contributions to a goal. ...
Duplicate File Finder Web Based Solution
I was trying to backup my home server when I saw my sister’s folder had around 300GB worth of files, and since she had migrated/upgraded to different machines over time and finally moved all the data over to the home server. I knew some(~50GB) of that would be duplicate files. So on a weekend, I decide to clean up some of that duplicate data before backing it up and start paying for it. ...
Better way of knowing carrier provider for contacts in India
This is a result of late night call from my dad asking me if I remember/know a mobile carrier of one of our contacts. There is an easy way to find this by opening any mobile recharge apps and put the details if suggests you the carrier details but that might proved to be wrong once you move closer to recharge, and so you have to go back repeat the step with multiple operators until you get success. ...
Journey of my Home Server
I had a couple of Raspberry Pi 3 (a credit card size SBC) with me, and I wanted to build something to satisfy my DIY spirit in me. If you search on the Internet, everyone will suggest you build a Home Server 😄 I had also recently replaced all the old HDD in home computers with SSDs, which means the systems were substantially fast now but had low storage capacity. So the project of building a NAS or Home Server was a good fit for my home. ...
Snake Game
In one of the online coding interviews I was given a problem to create a snake game we all played in old days. The problem statement was something like this given the moves you have to determine after how many moves the snake will eat himself. I was able to solve the problem, but as I was solving it I was thinking "can I can give this code a little more life with javascript". ...

Game of Life
The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. for more detail check Wikipedia In short, the game is a 2D grid that has the following rules Game Rules Any live cell with fewer than two live neighbours dies, as if by underpopulation. Any live cell with two or three live neighbours lives on to the next generation. Any live cell with more than three live neighbours dies, as if by overpopulation. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction. I just wanted to implement this game for fun :blush: , Marking of initial alive cells is little tricky on touchscreen devices. ...