Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
TL;DR: These notes meander a little.
-
Some useful symbols.
-
These steps improve PowerShell by: Adding tabs.
-
These notes build upon the class based NiceGUI app written about here, and modify it to be async.
-
A typo of git is just one Hamming distance away from twelve other commands: $ gti commit -m "FIXUP" Command 'gti' not found, did you mean: command 'gtg' from snap getting-things-gnome (0.6) command 'gsi' from deb gambc (4.9.3-1.2) command 'gtf' from deb
-
In Python, it can be useful to reset a dataclass back to its initial values, but this can be easy to get subtly wrong.
-
TL;DR: To profile a C program with gprof, build and link with -pg, and ensure that the program terminates cleanly (e.g. handles SIGINT and SIGTERM).
-
TL;DR: shm_open, which opens shared memory, will fail with fd !
-
TL;DR: If you try to create a link in Sphinx from MyST Markdown to an HTML file in the _static directory, Sphinx seems to only include the individual file you link to, and places it in the _downloads directory.
-
Tl;DR: After replacing the capacitors twice during 16+ years of regular use, I am finally getting a new monitor.
-
You can append to .bashrc using the Ansible blockinfile module.
-
TL;DR: To run kinit under Ansible, use ktutil to create a ticket.keytab, and then Ansible can authenticate without prompting.
-
Tl;DR: Use allow-prereleases = true to tell Poetry to consider alpha/beta/dev builds.
-
TL;DR: To tell if Ansible was invoked by Vagrant, define an is_vagrant flag as false in the playbook, but set it to true using extra_vars in the Vagrantfile.
-
As we begin 2024, I’ve now been working full time as a Software Engineer for over 10 years1.
-
The poetry-dynamic-versioning plugin enables configuring Poetry to automatically generate the package version number from your VCS (e.g.
-
These notes walk step-by-step through setting up Ansible and Vagrant in WSL, so that you can run vagrant up from within WSL to bring up a VirtualBox VM, and use Ansible to provision that VM!
-
I have a basic Python program which logs to journald.
-
OpenTelemetry is for collecting telemetry data (metrics, logs and traces), and forwarding them to storage and analysis tools.
-
I was surprised to find practically nothing online regarding using structlog with journald.
-
These notes cover how to run a Python Poetry command as a systemd service.
-
These notes cover how to do the following with journald in Python: Writing to journald Writing custom fields Reading from journald Reading all recent entries Reading custom fields Filtering by the executable Filtering by the systemd service (or “unit”) I’m
-
Following are steps for installing the official systemd Python package on Python using Poetry, on Ubuntu 22.04: Steps Install dependencies Before installing the Python package, you must install the libsystemd-dev and pkg-config packages for Ubuntu: apt-get
-
tl;dr: To install the official systemd Python package, use pip install systemd-python, even though python-systemd is the name of the repository on GitHub. systemd-python ✔️ The systemd-python package on PyPI comes from the systemd/python-systemd repository
-
tl;dr: PlantUML in Sphinx cannot be written in a way that is compatible with both MyST Markdown and the GitLab UI preview.
-
Following are some quick notes on how to manage using multiple remotes in Git.
-
Following are some quick notes on how to rename a branch in Git, both remotely and locally.
-
These notes are about how to perform an offline installation of a Python application using poetry install, not about how to install Poetry itself offline.
-
Following are some notes on configuring a Brocade FastIron FCX 624S network switch.
-
In NiceGUI you may start to see a binding propagation warning logged repeatedly if you have lots of binding.
-
NiceGUI gives lots of examples of using bind_visibility_from to show/hide an element based upon the value of some attribute.
-
TL;DR: if you get the error can't delete Tcl command when updating a pyplot within NiceGUI, add close=False to ui.pyplot().
-
At the end of May I returned to the UK from Seattle with just few suitcases.
-
This is part 2 in a series of notes about how to improve the performance of Django REST framework.
-
It’s very easy to get up and running with NiceGUI, and the development cycle is fast because it has an auto-reload feature, where the web page automatically updates whenever you save a change to your project’s Python code.
-
FastAPI is a Python web framework for building APIs.
-
This is part 1 in a series about how to improve the performance of Django REST framework.
-
If your NiceGUI application has some sort of state or configuration, it can be useful to provide a way to save and load that state.
-
The NiceGUI dialog element can be used to create a confirmation popup or modal.
-
In a NiceGUI application, it can be annoying if the main vertical scrollbar appears and disappears depending upon whether there is more content than fits in the screen.
-
When attempting to upgrade from Poetry v1.5.1 to v1.6.1 by running poetry self update I got the following error:
-
isort is a Python package that sorts the order of your imports, and groups them into sections by type.
-
Git Hooks provide “a way to fire off custom scripts when certain important actions occur”, and are typically stored in .git/hooks within your Git repository.
-
In Poetry, if you have defined custom sources but have not set a default source, you will get the following warning:
-
GitLab supports coverage reporting.
-
In Sphinx, using the MyST extension enables using Markdown (instead of ReStructuredText).
-
When building a Python package that is stored in git, it can be convenient to automatically generate the package version from the git commit and/or tag.
-
Poetry contains an undocumented feature which allows running custom code when poetry build is executed.
-
On a Python project using poetry, when running poetry build I got the error:
-
I had a device connected via Ethernet to a Windows 10 PC.