Sanket's Blog

Css Light and Dark Theme

2 minute read Published: 2023-03-28

Dark themes provide significant benefits for user experience and accessibility, particularly for users who experience eye strain from bright displays This document details a robust approach to implementing theme switching in Rust web applications without relying on heavy UI frameworks.

Python Coroutine

2 minute read Published: 2023-03-08

Consider the problem of maintaining a running sum of integers, which we will refer to as the Summer problem (a nod to the season). We will demonstrate how co-routines work by trying to implement running sum.

Debugging Guide for Vim Errors

2 minute read Published: 2022-04-25

Vim's default configuration presents significant debugging challenges due to its minimalistic design. While plugins substantially enhance Vim's capabilities, they can introduce complex error scenarios that require systematic troubleshooting techniques. This guide provides a structured approach to diagnosing and resolving Vim-related issues.

Weird S3 List Permission

2 minute read Published: 2021-06-20

S3's file storage system employs a flat namespace architecture, where all objects are stored as key-value pairs without hierarchical folders. While most interfaces simulate folder hierarchies using / as a path delimiter, this abstraction can introduce security risks when designing access policies for list operations.

Rust Ownership

3 minute read Published: 2020-12-20

Program execution requires persistent storage of intermediate results to support sequential instruction execution. This stateful memory must be carefully managed across concurrent program executions, a task traditionally handled by operating systems through system calls (e.g., brk/sbrk). Programming languages provide abstractions over these mechanisms to enable safer memory management strategies.