Hyprland Blurring Effect Configuration

How to Disable the Effect {% note info %} The effect makes the visual experience not that fluent, kind of annoying, instead {% endnote %} To disable the blurring background effect for a specific application (like VS Code) in Hyprland on Arch Linux, follow these steps: 1. Identify the Window Class Open VS Code, then run this command in a terminal: 1hyprctl activewindow | grep "class" The output will show the class, typically code for VS Code. If not, check all windows with: ...

June 5, 2025 · 2 min · 293 words · xxraincandyxx

Reinforcement Learning: Preliminary

Okay, here’s a general guide for modeling and training Reinforcement Learning (RL) agents using PyTorch. This guide will cover the core components and steps, assuming you have a basic understanding of RL concepts (agent, environment, state, action, reward). Core RL Components in PyTorch Environment: Typically, you’ll use a library like gymnasium (the maintained fork of OpenAI Gym). Key methods: env.reset(), env.step(action), env.render(), env.close(). Key attributes: env.observation_space, env.action_space. Agent: The learning entity. It usually consists of: ...

June 2, 2025 · 8 min · 1684 words · xxraincandyxx

DeepLearning Dataclass Guide

Okay, let’s craft a general and uniform guide for building a dataset class for image processing large models, focusing on PyTorch and PyTorch Lightning. This structure is highly adaptable. Core Principles for Your Dataset Class: Uniformity: The interface (__init__, __len__, __getitem__) should be consistent. Flexibility: Easily accommodate different data sources, label types, and transformations. Efficiency: Load data on-the-fly, leverage multi-processing in DataLoader, and handle large datasets without excessive memory usage. Clarity: Code should be well-commented and easy to understand. Reproducibility: Ensure that given the same settings, the dataset behaves identically (especially important for train/val/test splits). We’ll structure this around: ...

May 29, 2025 · 16 min · 3225 words · xxraincandyxx

Diffusions: Denoising Diffusion Probabilistic Model

Pipeline $$ x = x_0 \to x_1 \to x_2 \to \cdots \to x_{T-1} x_T = z $$which follows the workflow structure: $$ x_t = \alpha_t x_{t-1} + \beta_t \epsilon_t, \quad \epsilon_t \in \mathcal{N}(0, \mathbf{I}) $$where $\alpha_t, \beta_t > 0$ and $\alpha^2 + \beta^2 = 1$. We do this repeatedly, and we will get: $$ \begin{align*} x_t &= \alpha_t x_{t-1} + \beta_t \epsilon_t\\ &= \alpha_t(\alpha_{t-1} x_{t-2} + \beta_{t-1} \epsilon_{t-1}) + \beta_t \epsilon_t\\ &= \cdots\\ &= (\alpha_t \cdots \alpha_1)x_0 + (\alpha_t \cdots \alpha_2)\beta_1\epsilon_1 + (\alpha_t \cdots \alpha_3)\beta_2\epsilon_2 + \cdots + \alpha_t\beta_{t-1}\epsilon{t-1} + \beta_t\epsilon_t \end{align*} $${% note info %} ⚠ BUG: Usage for latex align failed! {% endnote %}

May 29, 2025 · 1 min · 106 words · xxraincandyxx

Github Contribution Workflow

Contribution Workflow Contributing to an open-source project on GitHub is a great way to collaborate with developers worldwide. Below is a general workflow to follow: Find a Project to Contribute To Explore GitHub repositories (e.g., via GitHub Explore, Good First Issues, or Up For Grabs). Ensure the project is open to contributions (check CONTRIBUTING.md, README.md, and issue labels like good first issue). Fork the Repository Click the “Fork” button on the top-right of the repository page to create your copy. Clone Your Fork Locally 1git clone https://github.com/your-username/repository.git 2cd repository Set the upstream (original repo) for syncing changes: 1git remote add upstream https://github.com/original-owner/repository.git Create a New Branch Avoid working on the main/master branch: 1git checkout -b feature-or-fix-name Make Your Changes Write code, fix bugs, or improve documentation. Follow the project’s coding style and guidelines. Test your changes. Commit Your Changes Stage and commit with a clear message: 1git add . 2git commit -m "Brief description of changes" Follow the project’s commit message conventions (e.g., Conventional Commits). Sync with Upstream Pull the latest changes from the original repo to avoid conflicts: 1git fetch upstream 2git rebase upstream/main # or upstream/master (Resolve any merge conflicts if they arise.) ...

May 27, 2025 · 3 min · 594 words · xxraincandyxx