Posts

Zola - Validating HTML

Build Command

Since Zola doesn't have any post build output, one has to rely on checking on the HTML post build output for HTML validness. Once you know the issue that occurs in the HTML, you can work backwards to resolve the problem.

Zola has a build command that will create all the HTML pages for your site.

zola build
Categories: #cms
Uv and Pip

Using Pip in the UV Venv

By default, uv does not provide pip in the uv venv environment. https://github.com/astral-sh/uv/issues/12604

This might cause unintended consequences when you accidentally use pip install instead of uv pip install.

To avoid this issue, you need to use the --seed option when creating the initial uv venv environment. Then activate the venv before performing running any pip commands.

Categories: #python
Incus - Linux Containers

Alternative to Distrobox

The desire for isolated and on-demand development environments can be met with Distrobox, however it isn't well suited for development in terms of flexibility.

One shortcoming with that Distrobox is that it doesn't offer the option to specify the location drive for containers. This option is handled by the container software that is used with Distrobox. While Docker does offer a way to specify a way to use containers in another drive, Distrobox didn't quite work well with Docker when the storage location of containers was changed in the Docker from my experience.

Since Distrobox is wrapping the functionality of either Docker or Podman, which means that it lives with the limitations of Docker or Podman. There is also the great likelihood that some features can't be mapped perfectly.

To address this issue, one would want to use a more full-fledge solution such as Incus. With Incus, you no longer have to install a container application such as Podman or Docker with Distrobox for environment isolation.

Categories: #containers
Pyside - Draggable Collapsible Panels

Reorder Containers that can Expand and Collapse

To further expand upon prior discussion of collapsible panels from previous posts

Superqt - Distributing QCollapsible Containers

PyQT - Collapsible Sections

In the previous article, the panels were referred to as containers, but in this article they will be referred to as panels instead. The term container might be confused with the element that houses all the panels.

We will want to improve our panels beyond being only collapsible by adding draggable/sortable capabilities.

Demo of Behavior

Categories: #python
Tags: #pyside
Mise - Package Manager

Choices and Versatility

Asdf is a tools and program installer that has been around for some time, but there is a newer tool that grants you the powers of asdf with even more capabilities such as automatic dependency management, larger choice of programs with support from different source registries and temporary dependency switching which comes from mise.

These aren't the only functionality of mise, but they are a few that can make an impact on improving your dependency management workflow.

Automatic Dependency Change Upon Project Folder Navigation

Mise simplifies the way you manage your runtime or programming language versions when you need to switch to different project folders that require a certain version.

Supposedly that you are interested in install different versions of nodejs, one LTS and the other more newer non-LTS version.

mise install node@22.12.0
mise install node@23.11.0

Set the version of nodejs that is to be the global default. This should generally be a LTS version of nodejs.

mise use --global node@22.12.0
Categories: #installer