Hi, There! 🙏🏼

Hello, This is a space to share my thoughts and experiments over world wide web. It solves couple of selfish purposes.

  • ➡️ I am learning to write in public and this blog gives me a tiny window to the world from where I can project and practice.
  • ➡️ I need to have a space where I can write down and access stuff at my own convenience and what’s better than this space.

If you are not me, then you can also take benefits of my mistakes and learn not to repeat them. I can be contacted at kaushalbundel@gmail.com.

Using uv for python package management

What is UV? An fast python package manager and project manager (Written in Rust) replaces pip, pyvenv, virtualenv etc. Runs scripts Installs and Manages Python versions Installation UV can be installed using any one of the package managers (homebrew, pacman etc) Commands Initializing a project uv init <project_name> The above command creates a folder named <project_name>. Inside the project name there is a complete project directory including the virtual environment. UV expects you to follow this project structure. Project Structure: . ├── .venv │ ├── bin │ ├── lib │ └── pyvenv.cfg ├── .python-version ├── README.md ├── main.py ├── pyproject.toml └── uv.lock pyproject.toml This file contains the metadata about the project in question, that can either be added manually by editing this file or by running certain commands. Sample file: [project] name = "hello-world" version = "0.1.0" description = "Add your description here" readme = "README.md" dependencies = [] Adding dependencies to the project uv add request #package versions can be specified Removing dependencies from the project uv remove request Running a program and running a script #program uv add flask uv run --flask run -p 3000 #script uv run <python_file_name> Updating the environment uv sync Note: UV does not activate virtual environment using these command. One needs to activate the virtual environment first before running scripts or programs. Creating virtual environment using uv uv venv #creates .venv uv venv <venv_name> #creates virtual environment named venv_name Integration with emacs Install uv-mode: link Instructions UV Mode works automatically once installed. Simply open a Python file in a project that has a .venv directory, and UV Mode will activate the appropriate virtual environment.

March 26, 2025 · 2 min · 271 words · Kaushal Bundel

Reference Guide for CSS

CSS (Cascading Style Sheet) CSS is nothing but the collection of selectors, their properties and values that help in styling the website in a way that is desired. Rules of CSS Rules are the order in which the CSS is applied on a web page. Rule 1: Specificity The more specific the rule, the higher is the priority h, a { y color: green; /*Type selectors (Lowest Specifity)*/ } .text-block{ background-color: yellow; /* class selector, denote by ".", (Medium Specifity)*/ } #text-block{ color: teal; /*id selector, denoted by "#" (Highest Specifity)*/ } /* { color: white; /*Universal selector, No specifity*/ } Rule 2: Inheritance ...

June 15, 2024 · 1 min · 166 words · Kaushal Bundel

Configuring Screen Time on Apps

The Note tries to understand mobile screen time control and presents current and proposed strategies. The inspiration of the article came from an excellent blog-post by Kristen Berman and her excellent product breakdown blog (kristenberman.substack.com). Do subscribe!! Introduction In behavioral science, the problems affecting behavior can be segregated in i-frame and s-frame. i-frame refers to individual frame of reference. Here the onus is on the individual to take action on the basis of their motivation, habits, biases and mindset. ...

May 3, 2024 · 4 min · 749 words · Kaushal Bundel

Notes of Building a Meditation App (Day 18)

I found this excellent product breakdown of Calm(Meditation App),How Calm uses premium to motivate. This article delves on the following key points: Meditation is often perceived as a challenging pursuit. The behavioral and mental shifts following regular meditation practice vary from person to person and typically emerge after a sustained period. Moreover, tailoring the environment to enhance each individual’s experience is not always possible. Consider the scenario where you’ve resolved to meditate, aiming to silence the cacophony of thoughts. You download an app and subscribe. Despite setting this intention and taking action, the likelihood of experiencing a transformative, day-altering meditation session is relatively slim. Contrast this with joining a gym. Discontent with your health and ongoing physical issues, you muster the courage to sign up for a premium gym membership. Surrounded by individuals showcasing their physical achievements, you’re motivated by the possibility of similar success. Your first session, amidst gleaming equipment, ignites a thrill and a satisfying sensation in your biceps, affirming your decision. ...

April 22, 2024 · 2 min · 378 words · Kaushal Bundel

Notes on Building a Meditation App (Day 17)

Deciding what to build for phase 1 For the past few days, I’ve been feeling stuck. I thought I was on the brink of completing my app, but for some reason, I couldn’t bring myself to do it. My progress was hindered by multiple factors: I began to doubt myself and my project. I questioned whether this product would indeed help users achieve a sense of calm in their day-to-day lives. I wondered if the product could offer a momentary respite amid their hectic schedules. To alleviate my doubts, I turned to research papers, most of which concluded that tracking and monitoring do help in identifying and managing stressors, with many people experiencing significant mental health benefits. I also read reviews of competing products and discovered that users greatly benefited from similar apps. ...

April 21, 2024 · 3 min · 430 words · Kaushal Bundel