Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
In GitLab, if you have a Container Registry set up for a private project (“Project A”), and you wish to use one of those containers in the FROM <image> field of a Dockerfile in another project (“Project B”) to create a new container, which you will then p…
-
In GitLab, if you have a Container Registry set up for a private project (“Project A”), and you wish to use one of those containers in the image: field of .gitlab-ci.yml in another project (“Project B”), e.g
-
The Python package Cartopy has some external dependencies, meaning installation is more complicated than just pip install cartopy.
-
Add Plausible analytics to Hugo Follow the official installation instructions for installing Plausible as a Hugo Module.
-
The ALSA tool arecord provides a very easy way to record audio.
-
As your Django database schema changes over time, inevitably one day you will need to normalize a model.
-
TL;DR: If using Celery as a systemd service with just one worker, I would suggest using Type=simple and celery worker, rather than Type=forking and celery multi, to avoid a potential race condition where systemd repeatedly restarts Celery.
-
In FreeRTOS, with a 32-bit systick running at 1000Hz (i.e. configTICK_RATE_HZ = 1000), the maximum duration it can run before a rollover occurs is ~50 days:1
-
To print a 64-bit unsigned integer in a portable way, ideally you would do as follows:
-
TL;DR: Following Windows update 22H2, Ubuntu (and other VMs) running inside VMware Workstation 16 get progressively slower, over the course of about 30 minutes, before eventually locking up.
-
This note documents how to add anchors to your headings in hugo, which show up only upon hover.
-
As you can see here, Netlify Analytics only spans the past 30 days: It’s pretty quiet around here… This could easily be solved if we could download the data and retain it ourselves.
-
Attempting to upgrade from Django 3.1 to Django 3.2 caused one of our Decimal handling unit tests to fail.
-
CMocka is a unit testing framework for C.
-
In these notes, we take a simple SDL2 game written in C, which builds on both Linux and Windows 10, and port it to Emscripten so that the game works in the browser.
-
Setting up Emscripten with CMake on Linux is largely the same as the earlier instructions for Setting up Emscripten with CMake in Git Bash on Windows 10.
-
These notes cover in detail how to set up Emscripten with CMake in Git Bash on Windows 10.
-
At some point recently my Windows 10 computer developed an issue where the Ethernet network adapter would seemingly disappear after waking up from sleep.
-
Today I ran into an issue on an embedded software platform.
-
Recently apt-key has been deprecated, which has meant that running apt update on my Debian 9 (“stretch”) machine started giving out warnings such as Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key…
-
Three years ago, I first set up my NAS using FreeNAS (see part 1).
-
Overview LTE was designed by 3GPP (Third Generation Partnership Project) LTE is known in full as 3GPP Long-Term Evolution LTE evolved from UMTS (Universal Mobile Telecommunications System), which in turn evolved into GSM (Global System for Mobile Communic…
-
TL;DR: Using COPY to copy files into a Docker container retains the permissions from the host system.
-
TL;DR: If “Container Registry” is not enabled for your project, docker build will give a cryptic error such as: invalid argument ":master" for "-t, --tag" flag: invalid reference format
-
nmcli is used to control NetworkManager from the command line.
-
tl;dr: On Linux, Dropbox depends upon libpango1.0-0, which was renamed to libpango-1.0-0 over six years ago.
-
Removing an app from Django is fairly straight-forward, if its an internal app, i.e. one for which you control the source code.
-
Just upgraded Inkscape from v0.92 to v1.0.
-
Sonic Pi allows you to compose music with code, and edit it on the fly.
-
Following are some tips from my experience of using mypy.
-
Following are some tips to help remind myself how to perform SSH tasks that I do less frequently.
-
tl;dr: If you want to add a custom logging level to Python (e.g. verbose), and you want it to play nicely with mypy (e.g. to not report error: "Logger" has no attribute "verbose" every time you call logger.verbose()), there doesn’t seem to be a better way…
-
I’m working on developing a board game, and would like to make some playing cards for it.
-
Here are some tips from my experience of migrating an existing Django application from using Tastypie for its REST API to instead using Django REST Framework.
-
When updating the Python cryptography package from v1.x to v2.7 I could not find a manylinux1 wheel for Python 3.6.
-
PEP 508 introduced environment markers which let you specify conditions for whether a package should be installed.
-
It can be a frustrating experience for a user if you naïvely reject their input without giving them another chance to correct their input, or know why it is wrong: def validator(ctx, param, value): """Aborts if value is too long. """ if len(value) > 32:
-
This note is deprecated as of December 2024.
-
Today, Python 2.7’s pip started echoing the following: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020.
-
If you get the following error with pylibftdi: [...]
-
The USB Wi-Fi adapter I ordered a month ago arrived today!
-
The bane of my experience with Visio usually comes down to connectors; being unable to attach them where I want, being unable to adjust the lines to where I want, and then once I’ve got them in place, they start jumping around by themselves when something…
-
We’re going to try and downgrade iwlwifi from version -22 to -17, roughly following advice from here.
-
Going to attempt upgrading to a more recent iwlwifi firmware version to see if that fixes my wifi issues.
-
On a default installation of Debian, trying to install hugo with apt install hugo will fetch the latest stable version of Hugo, which at time of writing is v0.18.1, and was released in December 2016!
-
On Debian Stretch (9.5), wanting to add a keyboard shortcut which un-maximises the current window and centers it, making it slightly smaller than the screen resolution, so that some of the background can be seen.
-
Perhaps a couple of months ago (unfortunately I’m not sure exactly when) I started experiencing the following wifi problem on my laptop: the wifi connection would die, and nothing except rebooting the machine would fix the problem.
-
What doesn’t seem to be documented in the pip installation guide is that pip can bootstrap itself.
-
My tox py36 task was failing with a The handle is invalid error, and the traceback showed it was somewhere inside Coverage v4.2.2:
-
The following is an example Windows batch script which runs makemigrations inside a tox virtual environment, then copies the migrations out of the virtual environment into your src directory.