Getting Started With Rust: Common Algos (Part 1)

It has been some time since I wrote my last blog post. I am glad to be writing again. This post is about the Rust programming language. Recently, I started learning Rust. I wanted to document examples of common algorithms in C++ and show how they can be written in Rust. Plan In this post (Part 1), I focus on the first five common programs we typically implement in C++. My goal is to write the code myself without using LLM-generated implementations. I may still use web search to refer to Rust documentation and other learning resources. ...

October 19, 2025 · 12 min · Ubaid Shaikh

Multi-Arch Builds in Docker WSL & MacOS

Introduction By default, Docker builds images for the architecture of the host machine. As a result, an image built on a Linux amd64 host may not run directly on an Apple Silicon arm64 machine, and vice versa. Multi-architecture builds solve this by producing a single image tag backed by multiple architecture-specific images. Docker then automatically pulls the correct variant for the target host. This guide walks through the full setup on WSL and macOS, followed by build, push, verification, and troubleshooting. ...

July 8, 2025 · 4 min · Ubaid Shaikh

Custom Domain on Localhost with HTTPS

We all run our webservers on localhost during development. Have you wondered how we can add custom domain and serve the site over https? In this blog post, we will see how to set this up in Windows and WSL (version 2). I believe the steps would be similar for MacOS and Linux. Let’s get started. Prerequisites Before we begin, make sure you have: Python and Flask installed: pip install flask OpenSSL installed: In WSL, run sudo apt-get install openssl Administrator privileges on Windows (for editing hosts file and installing certificates) Basic understanding of web servers and HTTP/HTTPS concepts TLDR: High level steps Add custom domain mapping in your system’s hosts file. This redirects your custom domain to localhost. Generate a self-signed certificate using OpenSSL. This provides SSL/TLS encryption for HTTPS. Trust the certificate in your system’s certificate store to avoid browser warnings. Configure your web server to use the certificate and serve content over HTTPS. Step 0: Boot up some server Let’s start any webserver. I like to use python’s flask for this. You are free to use other approaches like nginx. ...

May 25, 2025 · 5 min · Ubaid Shaikh

LFortran: IMPLEMENTING A CUSTOM WASM BACKEND

LFortran: IMPLEMENTING A CUSTOM WASM BACKEND GSoC'22 Report...

August 25, 2022 · 6 min · Ubaid Shaikh

Supporting Several Features and Final Fixes

Hey there 🤗, Welcome to my GSoC Journey...

August 23, 2022 · 2 min · Ubaid Shaikh