From 5ab0efdf254e43bccb25e269df650580c8eb5c88 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 16 Dec 2025 04:08:12 +0100 Subject: [PATCH 01/22] raspberry pi: setup and minor troubleshooting added --- wiki/linux/disk-management.md | 44 ++++++++++++++++++++++------------- wiki/linux/raspberry_pi.md | 25 +++++++++++++++++++- 2 files changed, 52 insertions(+), 17 deletions(-) diff --git a/wiki/linux/disk-management.md b/wiki/linux/disk-management.md index dba33ee..f9db94c 100644 --- a/wiki/linux/disk-management.md +++ b/wiki/linux/disk-management.md @@ -14,27 +14,26 @@ The size of a swap file can easily be increased using the following steps. Using the following commands currently active swaps can be shown and the usage of them can be checked. -```sh +```sh swapon --show -free -h +free -h ``` Then the swap file can be changed using the following commands. `` is the location of the swap file (for example `/swap.img`). `` describes the new size of the swap file (for example `16G`) - -```sh +```sh swapoff -fallocate -l -chmod 600 -mkswap -swapon +fallocate -l +chmod 600 +mkswap +swapon ``` Finally the swap can be checked again to confirm that it is online and has the correct size -```sh +```sh swapon --show ``` @@ -45,14 +44,14 @@ The following command will create a file on the target drive and show the data t writing. In the following case `/mnt/usb1/tmp` is the path of the target file. -```sh +```sh cat /dev/zero | pv > /mnt/usb1/tmp ``` After this the read speed can be checked by using the just created temporary file. The following command will display the read speed. -```sh +```sh cat /mnt/usb1/tmp | pv > /dev/zero ``` @@ -126,10 +125,10 @@ In the following it is assumed that the partition to enlarge is `/dev/sda2` - change the size of the partition with `parted /dev/sda` - inside of parted run `print free` and check where the free space after your -partition ends + partition ends - run `resizepart` and follow the instructions; End is the number you checked in -the last step (alternatively you can insert `100%` as end, if you want to add all -the available free space to the partition) + the last step (alternatively you can insert `100%` as end, if you want to add all + the available free space to the partition) - `quit` parted Afterwards the file system need to be resized as described in a @@ -176,12 +175,25 @@ The following list shows some options to quickly clean up space. - [Package Mangers](/wiki/linux/package_manager.md) - [ViFM Trash Bin](/wiki/linux/vifm.md#empty-trash) +## Accessing Disks as User + +Sometimes - for example when flashing an SD card for a +[Raspberry Pi](/wiki/linux/raspberry_pi.md#setup) - it may be useful to do so with your default +user and not using the root user. +For this to work the user can be added to the `disk` group permanently. +Please note that this however reduces the systems security. +A command to do so, may look like the following (given the `$USER` variable is set correctly). + +```sh +usermod -a -G disk $USER +``` + ## Error solving This section addresses various problems that can occur and are related to disk-management. -### sudo: unable to open ... Read-only file system +### `sudo: unable to open ... Read-only file system` Ususally the filesystem will go into read-only mode whe the system is running and there is a consistency error. @@ -193,7 +205,7 @@ To fix it run: you may want to try using the ext4-specific fsck: - `fsck.ext4 -f /dev/sda1` -### cannot access: Transport endpoint is not connected +### `cannot access: Transport endpoint is not connected` This error message can occur if a mounted directory is left mounted due to a crash of the filesystem but not accessible anymore. diff --git a/wiki/linux/raspberry_pi.md b/wiki/linux/raspberry_pi.md index 68ce4de..6469127 100644 --- a/wiki/linux/raspberry_pi.md +++ b/wiki/linux/raspberry_pi.md @@ -2,6 +2,29 @@ A [Rapberry Pi](https://www.raspberrypi.com) is a single board comuter. +## Setup + +For setting up a classic Raspberry Pi an SD card is needed that contains the operating system. + +For this an image has to be flashed. +The images of the operating systems can be found on the +[official website](https://www.raspberrypi.com/software/operating-systems). +A command to flash may look similar to the following example, where `` is the path to the +image and `` is the path to the device to flash to (for example `/dev/sdb1`). + +```sh +dd if= of= status=progress +``` + +This however can also be done using the Raspberry Pi imager - which most +[package managers](/wiki/linux/package_manager.md) package under `rpi-mager`. +It too can also be found on the [official website](https://www.raspberrypi.com/software). +When using the imager as a non-root user this user may have to be given rights to access disks or +at least the SD card as described in the +[corresponding article](/wiki/linux/disk-management.md#accessing-disks-as-user). + +The setup using the imager is guided and easier. + ## Hardware Additions There are various hardware additions which can be used with the Raspberry Pi. @@ -51,7 +74,7 @@ The second command is optional but recommended and takes the path to this `.har` The third and final command compiles the (optimized) `.har` model, which is given as the input, and outputs the final `.hre` model, which then can be used with the Hailo AI module. -```sh +```sh hailo parser tf hailo optimize --use-random-calib-set hailo compiler From beb5044107f9372a37d29c081d236c1c6ec2a8ce Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 02:08:32 +0100 Subject: [PATCH 02/22] fixed typo --- wiki/linux/x_window_system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki/linux/x_window_system.md b/wiki/linux/x_window_system.md index 69ce725..76a0ef9 100644 --- a/wiki/linux/x_window_system.md +++ b/wiki/linux/x_window_system.md @@ -135,7 +135,7 @@ EndSection This can be disabled temporarily by running `xset s off`. The screen can also be turned off instantly with the command `xset dpms force off`. -If `OffTime` does not work add the following to the file `/etc/X11/xorg.conf.d/dpms.conf. +If `OffTime` does not work add the following to the file `/etc/X11/xorg.conf.d/dpms.conf`. ```txt Section "ServerFlags" From db0822bb6c4cd03f73c868eb4568fdc9dd26cd83 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 02:08:48 +0100 Subject: [PATCH 03/22] anki: added styling guide --- wiki/anki.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wiki/anki.md b/wiki/anki.md index 1cf8b91..5511f87 100644 --- a/wiki/anki.md +++ b/wiki/anki.md @@ -53,3 +53,11 @@ for example. To change this navigate to the `Options` of a deck and then change `New card sort order` to `Random` to randomize them before showing them without gathering them randomly. To change this the `New card gather order` can also be set to `Random notes` or `Random cards`. + +### Change Card Style + +The layout and the style of the cards can be changed using CSS and HTML. +There are various ressources that can be used for this. +One of them is [anki-prettify](https://github.com/pranavdeshai/anki-prettify). +The exact CSS an HTML has to be changed on a per-note base under `Tools`, `Manage Note Types`, and +`Cards` after selecting the corresponding note. From eb2011ac30b36e6abfe8992dadf2fdd4cdef385a Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 02:11:35 +0100 Subject: [PATCH 04/22] added kiwix --- wiki/docker/kiwix_-_kiwix-serve.md | 41 ++++++++++++++++++++++++++++++ wiki/kiwix.md | 22 ++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 wiki/docker/kiwix_-_kiwix-serve.md create mode 100644 wiki/kiwix.md diff --git a/wiki/docker/kiwix_-_kiwix-serve.md b/wiki/docker/kiwix_-_kiwix-serve.md new file mode 100644 index 0000000..bb2c674 --- /dev/null +++ b/wiki/docker/kiwix_-_kiwix-serve.md @@ -0,0 +1,41 @@ +# /maintainer/ - /name/ + +This is a [Docker](/wiki/docker.md) container for a [Kiwix](/wiki/kiwix.md) server. +The official container and documentation was made by +[kiwix](https://github.com/kiwix/kiwix-tools/pkgs/container/kiwix-serve). + +## Set-up + +Create the file `rebuild.sh`. +Make sure to place the `.zim` files inside the volume. +Change the settings according to your needs and run `./rebuild.sh` afterwards. + +## Ports + +Set the following ports in the `ports:` section. + +| Container Port | Recommended outside port | Protocol | Description | +| -------------- | ------------------------ | --------- | ------------- | +| `80` | `80` | TCP | WebUI | + +## Volumes + +Set the following volumes with the -v tag. + +| Outside mount/volume name | Container mount | Description | +| ------------------------- | --------------- | -------------- | +| `kiwix_data` | `/data` | Data directory | + +## rebuild.sh + +```sh +docker stop kiwix-serve +docker rm kiwix-serve +docker pull ghcr.io/kiwix/kiwix-serve +docker run --name kiwix-serve \ + --restart unless-stopped \ + -v kiwix_data:/data \ + -p 80:80 \ + -d ghcr.io/kiwix/kiwix-serve \ + *.zim +``` diff --git a/wiki/kiwix.md b/wiki/kiwix.md new file mode 100644 index 0000000..67db27d --- /dev/null +++ b/wiki/kiwix.md @@ -0,0 +1,22 @@ +# Kiwix + +[Kiwix](https://kiwix.org) is a open-source software that allows to save web content like Wikipedia +or Stack Overflow locally and for offline usage. + +## Setup + +The software can be setup via [Docker](/wiki/docker.md) with the +[kiwix image](/wiki/docker/kiwix_-_kiwix-serve.md). + +## Usage + +This section addresses the usage of kiwix. + +### Download content + +The content to display using Kiwix has to be acquired as a `.zim` file. +The official collection of these files can be found on the +[official website](https://library.kiwix.org/). +For [Docker](/wiki/docker.md) the `.zim` files need to be placed accordingly to the +[corresponding article](/wiki/docker/kiwix_-_kiwix-serve.md). +After the downloading the files, Kiwix may have to be restarted. From d6785f66944c02ca6b597e0014d5060af6e65227 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 02:13:57 +0100 Subject: [PATCH 05/22] added kiwix --- wiki/kiwix.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wiki/kiwix.md b/wiki/kiwix.md index 67db27d..77bbf64 100644 --- a/wiki/kiwix.md +++ b/wiki/kiwix.md @@ -5,12 +5,14 @@ or Stack Overflow locally and for offline usage. ## Setup -The software can be setup via [Docker](/wiki/docker.md) with the +Kiwix is available for different operating systems and can be installed as described +[on the official website](https://kiwix.org/en/applications). +The software can also be setup via [Docker](/wiki/docker.md) with the [kiwix image](/wiki/docker/kiwix_-_kiwix-serve.md). ## Usage -This section addresses the usage of kiwix. +This section addresses the usage of Kiwix. ### Download content From 8c4f95fd244efb67484fa8ca688c646b0f5625b2 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 02:25:40 +0100 Subject: [PATCH 06/22] linux: added flac compression command --- wiki/linux/flac_(package).md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/wiki/linux/flac_(package).md b/wiki/linux/flac_(package).md index 1ecff12..33ced9d 100644 --- a/wiki/linux/flac_(package).md +++ b/wiki/linux/flac_(package).md @@ -12,7 +12,41 @@ Another possible tagging software is [MusicBrainz Picard](../picard.md) ## Usage +This section addresses the usage of the flac package. + ### Splitting Flac file according to cue file `shnsplit` can be used to split flac files. In the [shnsplit article](/wiki/linux/shntool.md) an explanation on this is given. + +### Compress or Recompress `.wav` and `.flac` files + +`.flac` and `.wav` files can be compressed with the following command. +In this `` is the path to the music file but can also use wildcards (for example +`*.wav`). +`` is the compression rate. +The highest compression preset is `8`. + +```sh +flac - +``` + +When recompressing `.flac` files the file does not have to be decoded to encode it again but can be +recompressed in one command. + +According to a +[Reddit comment by berdmayne](https://www.reddit.com/r/foobar2000/comments1m3634l/best_way_to_reduce_flac_file_size_without_losing) +the compression rates of the different levels are the following. + +| Level | Saving to level 0 | Saving to previous level | +| ---------------- | ------------------- | ------------------------ | +| 0 (uncompressed) | 0.0% | | +| 1 | 0.5% | 0.5% | +| 2 | 0.9% | 0.4% | +| 3 | 5.3% | 4.4% | +| 4 | 6.0% | 0.7% | +| 5 | 6.4% | 0.4% | +| 6 | 6.7% | 0.4% | +| 7 | 6.9% | 0.2% | +| 8 | 7.0% | 0.1% | + From 68e29c72903b0932f0df4fbee580a202ef72c86b Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 02:30:21 +0100 Subject: [PATCH 07/22] anki: added french a0/a1 grammar resource --- wiki/anki.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/wiki/anki.md b/wiki/anki.md index 5511f87..a2056d7 100644 --- a/wiki/anki.md +++ b/wiki/anki.md @@ -57,7 +57,19 @@ To change this the `New card gather order` can also be set to `Random notes` or ### Change Card Style The layout and the style of the cards can be changed using CSS and HTML. -There are various ressources that can be used for this. +There are various resources that can be used for this. One of them is [anki-prettify](https://github.com/pranavdeshai/anki-prettify). The exact CSS an HTML has to be changed on a per-note base under `Tools`, `Manage Note Types`, and `Cards` after selecting the corresponding note. + +### Resources + +The following are useful resources and (shared) decks for learning various languages with Anki. + +#### French Resources + +The following is a list of French resources. + +- [French A0/A1 Anki Deck + Images/Audio/Explanations](https://ankiweb.net/shared/info/1070709392) + is a shared deck for various French grammar and idioms. + It is especially useful since it contains a practical note type for grammar questions. From 1d450415884b2f93aeac82c8c2e0f10a2d971f3b Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 02:31:01 +0100 Subject: [PATCH 08/22] fixed typos --- wiki/game/minecraft.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wiki/game/minecraft.md b/wiki/game/minecraft.md index 4f5d29d..a67cda8 100644 --- a/wiki/game/minecraft.md +++ b/wiki/game/minecraft.md @@ -258,14 +258,14 @@ The following are recommended client-side graphical mods. redstone level of a music disc in game. - "Rename 'Stem' to 'Log'" from Vanilla Tweaks is a resource pack that changes the Nether woods to use 'Stem' instead of 'Log'. -- "Icons" is a ressource pack that adds icons into the menu and game. - Additionally "Icons Advertisement Removal" removes the logo of the "Icons" ressource pack. -- "Hoffen's Minimal Armor" is a ressource pack that minimizes the look of armor. -- "Vertical Nuggets" is a ressource pack that flips all nuggets to be vertical. -- "Colorful Canines" is a ressource pack that makes dog armor more colorful. -- "Colorful Sheared Sheep" is a ressource pack that makes the color of sheep wool visible even +- "Icons" is a resource pack that adds icons into the menu and game. + Additionally "Icons Advertisement Removal" removes the logo of the "Icons" resource pack. +- "Hoffen's Minimal Armor" is a resource pack that minimizes the look of armor. +- "Vertical Nuggets" is a resource pack that flips all nuggets to be vertical. +- "Colorful Canines" is a resource pack that makes dog armor more colorful. +- "Colorful Sheared Sheep" is a resource pack that makes the color of sheep wool visible even after the shearing. -- "Real Arrrow Tip" is a ressource pack that makes the look of arrows correct ingame. +- "Real Arrrow Tip" is a resource pack that makes the look of arrows correct ingame. The following are recommended client-side audio mods. @@ -313,8 +313,8 @@ The following are recommended client-side HUD and other UI modifications - "Scribble" is a mod that makes editing books easier by adding buttons for color, bold font and more. - "Chat Patches" is a mod that extends the chat history and adds some more tweaks. -- "Armor Chroma for Fabric" is a ressource pack that shows the type of armor in the bar. -- "Colorful Ping" is a ressource pack that shows the ping symbol in color. +- "Armor Chroma for Fabric" is a resource pack that shows the type of armor in the bar. +- "Colorful Ping" is a resource pack that shows the ping symbol in color. The following are possible client-side mods that change the gameplay or give other information in the game. From f7d0ca7f64bc811fa621c021f4ebc7ede7eb48b5 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 02:45:42 +0100 Subject: [PATCH 09/22] hailo: changed structure added resources --- wiki/hailo.md | 64 +++++++++++++++++++++++++++++ wiki/linux/raspberry_pi.md | 61 +-------------------------- wiki/programming_language/python.md | 14 +++++++ 3 files changed, 80 insertions(+), 59 deletions(-) create mode 100644 wiki/hailo.md diff --git a/wiki/hailo.md b/wiki/hailo.md new file mode 100644 index 0000000..bc5f248 --- /dev/null +++ b/wiki/hailo.md @@ -0,0 +1,64 @@ +# Hailo + +[Hailo](https://hailo.ai) produces AI accelerator chips which are used for deep learning. +An example for a system that uses it is +[Raspberry Pi's AI Hat +](/wiki/linux/raspberry_pi.md#ai-hat). + +## Usage + +This section addresses various usages of the Hailo software. + +### Preparing TensorFlow Models for the AI HAT+ + +For [neural networks](/wiki/neural_network.md) to run on the Hailo AI module and the AI HAT+ they +have to be converted to the `.hef` format. +This section assumes the neural network is using +[TensorFlow](/wiki/programming_language/python.md#tensorflow) and is available as a `.tf` or +`.tflite` file. + +To convert TensorFlow models first the Hailo 8 Software Suite needs to be downloaded. +This can be done from the [official website](https://hailo.ai/developer-zone/software-downloads/) +altough an account is needed for it. + +After downloading, extracting and then navigating into the folder a heavily customized +[Docker](/wiki/docker.md) container can be started by running the following command. +However it is recommended to slightly modify this file. +Add a volume that contains the TensorFlow model, that is to be converted, to the environment +variable `DOCKER_ARGS` which is set in the file `hailo_ai_sw_suite_docker_run.sh`. + +```sh +./hailo_ai_sw_suite_docker_run.sh +``` + +Using the tools which come in this container a `.tf` or `.tflite` model can be converted to the +`.hef` format. + +For this to work run the following commands inside the Docker container. +The first command takes the path to the tensorflow model (``) and will output a +`.har` model. +The second command is optional but recommended and takes the path to this `.har` model +(` +hailo optimize --use-random-calib-set +hailo compiler +``` + +Note that the user in the Docker container usually uses anothr UID and GID. +To make the volume and files accessible inside the container the IDs of the files in the volume +should be changed accordingly - for example as shown in the following example. +`` is the path that points to the volume +`` is the UID of the Docker user - which can be found using `id -u` (for example `10642`) - +and `` the GID of the Docker user - which can be found using `id -g` (for example `10600`). + +```sh +chown -R : +``` + +After the models have been converted it can be reversed using the systems user UID and GID. + +The converted models can than be run using the Python programming language as described in the +[Python article](/wiki/programming_language/python.md#hailo). diff --git a/wiki/linux/raspberry_pi.md b/wiki/linux/raspberry_pi.md index 5f139f1..76227bd 100644 --- a/wiki/linux/raspberry_pi.md +++ b/wiki/linux/raspberry_pi.md @@ -33,62 +33,5 @@ This section addresses them. ### AI HAT+ The [AI HAT](https://www.raspberrypi.com/documentation/accessories/ai-hat-plus.html) is an -extension which uses the Hailo AI module for use with the [Raspberry Pi -5](https://www.raspberrypi.com/products/raspberry-pi-5). - -#### AI HAT+ Usage - -This section addresses the usage of the -[AI HAT](https://www.raspberrypi.com/documentation/accessories/ai-hat-plus.html). - -#### Preparing TensorFlow Models for the AI HAT+ - -For [neural networks](/wiki/neural_network.md) to run on the Hailo AI module and the AI HAT+ they -have to be converted to the `.hef` format. -This section assumes the neural network is using -[TensorFlow](/wiki/programming_language/python.md#tensorflow) and is available as a `.tf` or -`.tflite` file. - -To convert TensorFlow models first the Hailo 8 Software Suite needs to be downloaded. -This can be done from the [official website](https://hailo.ai/developer-zone/software-downloads/) -altough an account is needed for it. - -After downloading, extracting and then navigating into the folder a heavily customized -[Docker](/wiki/docker.md) container can be started by running the following command. -However it is recommended to slightly modify this file. -Add a volume that contains the TensorFlow model, that is to be converted, to the environment -variable `DOCKER_ARGS` which is set in the file `hailo_ai_sw_suite_docker_run.sh`. - -```sh -./hailo_ai_sw_suite_docker_run.sh -``` - -Using the tools which come in this container a `.tf` or `.tflite` model can be converted to the -`.hef` format. - -For this to work run the following commands inside the Docker container. -The first command takes the path to the tensorflow model (``) and will output a -`.har` model. -The second command is optional but recommended and takes the path to this `.har` model -(` -hailo optimize --use-random-calib-set -hailo compiler -``` - -Note that the user in the Docker container usually uses anothr UID and GID. -To make the volume and files accessible inside the container the IDs of the files in the volume -should be changed accordingly - for example as shown in the following example. -`` is the path that points to the volume -`` is the UID of the Docker user - which can be found using `id -u` (for example `10642`) - -and `` the GID of the Docker user - which can be found using `id -g` (for example `10600`). - -```sh -chown -R : -``` - -After the models have been converted it can be reversed using the systems user UID and GID. +extension which uses the [Hailo AI module](/wiki/hailo.md) for use with the +[Raspberry Pi 5](https://www.raspberrypi.com/products/raspberry-pi-5). diff --git a/wiki/programming_language/python.md b/wiki/programming_language/python.md index 0af5ce9..21d5506 100644 --- a/wiki/programming_language/python.md +++ b/wiki/programming_language/python.md @@ -189,6 +189,20 @@ torch.cuda.is_available() This should give back `True`. +### Hailo + +The package for [Hailo chips](/wiki/hailo.md) has to be downloaded from the +[official website](https://hailo.ai/developer-zone/software-downloads). + +Hailo chips can be used to run converted [TensorFlow](#tensorflow) models. +The conversion process is explained in the +[Hailo article](/wiki/hailo.md#preparing-tensorflow-models-for-the-ai-hat) + +To run the inference using Python on ARM boards like the +[Raspberry Pi AI Hat +](/wiki/linux/raspberry_pi.md#ai-hat) +[zlodeibaal's article in Medium](https://medium.com/@zlodeibaal/how-to-run-hailo-on-arm-boards-d2ad599311fa) +can be referenced. + ### TensorFlow This section addresses the [TensorFlow module](https://www.tensorflow.org/). From 1aa98200dc605af51f104361d181c45503d7f531 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 02:50:07 +0100 Subject: [PATCH 10/22] raspberry pi: added ssh troubleshooting --- wiki/linux/raspberry_pi.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wiki/linux/raspberry_pi.md b/wiki/linux/raspberry_pi.md index 76227bd..8e37c49 100644 --- a/wiki/linux/raspberry_pi.md +++ b/wiki/linux/raspberry_pi.md @@ -35,3 +35,13 @@ This section addresses them. The [AI HAT](https://www.raspberrypi.com/documentation/accessories/ai-hat-plus.html) is an extension which uses the [Hailo AI module](/wiki/hailo.md) for use with the [Raspberry Pi 5](https://www.raspberrypi.com/products/raspberry-pi-5). + +## Troubleshooting + +This section addresses the usage of Raspberry Pi systems. + +### SSH Servera Not Starting for Imager Setups + +Sometimes the [imager](#setup) can run into errors which does not set up the +[SSH](/wiki/linux/openssh.md) server on the Pi correctly. +In this case the SSH server needs to be started manually by display and keyboard. From 3bcff627c5416f9a2eef8f852daad5f5390df530 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 02:57:02 +0100 Subject: [PATCH 11/22] python: added combining tf models --- wiki/programming_language/python.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/wiki/programming_language/python.md b/wiki/programming_language/python.md index 21d5506..33c23f7 100644 --- a/wiki/programming_language/python.md +++ b/wiki/programming_language/python.md @@ -218,3 +218,18 @@ Additionally it is noted that the dataset may have to be shuffled manually as de Finally [a Medium blog post](https://medium.com/@danielonugha0/how-to-change-the-learning-rate-of-tensorflow-b5d854819050) describes how to easily change the learning rate. + +#### Combining Models + +Models that are normally run in sequence but trained and saved separately can be easily be combined +into a single model. +This can have some advantages, for example when using inteference for deep learning on Edge TPUs +like the [Hailo chips](/wiki/hailo.md) or the [EPS32S3](/wiki/microcontroller.md#esp32). + +A simple example for the combination of two models (`model1` and `model2`) into a new model +(`combined_model`) is the following code. + +```sh +output = model2(model1.output) +combined_model = tf.keras.models.Model(inputs=model1.input, outputs=output) +``` From f82ba017c18024dbff4bfa330c815a51898ab74c Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 03:02:59 +0100 Subject: [PATCH 12/22] hailo: explained setup better --- wiki/hailo.md | 8 ++++++++ wiki/programming_language/python.md | 2 ++ 2 files changed, 10 insertions(+) diff --git a/wiki/hailo.md b/wiki/hailo.md index bc5f248..0e79929 100644 --- a/wiki/hailo.md +++ b/wiki/hailo.md @@ -4,6 +4,14 @@ An example for a system that uses it is [Raspberry Pi's AI Hat +](/wiki/linux/raspberry_pi.md#ai-hat). +## Setup + +Depending on the system and the type of access various things may have to be setup. +For Ubuntu systems like the [Raspberry Pi](/wiki/linux/raspberry_pi.md) these are often named +`hailort-pcie-driver` and `hailort`. +When using the [Python prorgamming language](/wiki/programming_language/python.md) refer to the +[Hailo section](/wiki/programming_language/python.md#hailo). + ## Usage This section addresses various usages of the Hailo software. diff --git a/wiki/programming_language/python.md b/wiki/programming_language/python.md index 33c23f7..68fff93 100644 --- a/wiki/programming_language/python.md +++ b/wiki/programming_language/python.md @@ -193,6 +193,8 @@ This should give back `True`. The package for [Hailo chips](/wiki/hailo.md) has to be downloaded from the [official website](https://hailo.ai/developer-zone/software-downloads). +Additionally additional setup may be required as explained in the +[Hailo article](/wiki/hailo.md#setup) Hailo chips can be used to run converted [TensorFlow](#tensorflow) models. The conversion process is explained in the From 866cad47e135d444f42b1a06a8a76bfbf56cf4fa Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 03:13:36 +0100 Subject: [PATCH 13/22] nim: added modules --- wiki/programming_language/nim.md | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/wiki/programming_language/nim.md b/wiki/programming_language/nim.md index bc9a83d..db58256 100644 --- a/wiki/programming_language/nim.md +++ b/wiki/programming_language/nim.md @@ -8,3 +8,39 @@ language. You can install nim using choosenim with `curl https://nim-lang.org/choosenim/init.sh -sSf | sh`. If you're on an arch-based machine you can also run `yay -S choosenim` (install `yay` if necessary). + +## Usage + +This section addresses the usage of Nim. + +### Use Python Packages + +[Python modules](/wiki/programming_language/python.md#modules) can easily be used in Nim using the +module [nimpy](#nimpy). + +## Modules + +There are various modules for Nim. +As package manager `nimble` is used most of the time. + +This section addresses various different modules. + +### Arraymancer + +[Arraymancer](https://github.com/mratsim/Arraymancer) is a tensor library for Nim which can be used +to run deep learning on CPUs, GPUs and embedded devices. + +### nimpy + +[nimpy](https://github.com/yglukhov/nimpy) is a [Python](/wiki/programming_language/python.md) +bridge for the Nim programming languages. +With it [Python modules](/wiki/programming_language/python.md#modules) can be used easily inside +Nim. + +### SciNim + +[SciNim](https://github.com/SciNim) is a collection of modules more than a single one. +It features various tools for scientific purposes from curve fitting to data visualization. + +An overview of it can be achieved on the +[getting-started repository](https://github.com/SciNim/getting-started/blob/main/book/overview/index.md). From 3d8f4c11c96c5b319f5445afed16647c5fbfb16a Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 03:13:49 +0100 Subject: [PATCH 14/22] fixed typos --- wiki/hailo.md | 2 +- wiki/programming_language/python.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wiki/hailo.md b/wiki/hailo.md index 0e79929..db49420 100644 --- a/wiki/hailo.md +++ b/wiki/hailo.md @@ -62,7 +62,7 @@ should be changed accordingly - for example as shown in the following example. `` is the UID of the Docker user - which can be found using `id -u` (for example `10642`) - and `` the GID of the Docker user - which can be found using `id -g` (for example `10600`). -```sh +```sh chown -R : ``` diff --git a/wiki/programming_language/python.md b/wiki/programming_language/python.md index 68fff93..71c6255 100644 --- a/wiki/programming_language/python.md +++ b/wiki/programming_language/python.md @@ -147,7 +147,7 @@ directory. ## Modules -There are various modules and package managers to install these for python like +There are various modules and package managers to install these for Python like `pip`. For this usually a virtual environment is needed - as it is described in [the setup section](#setup). @@ -159,6 +159,8 @@ If it doesnt work the packages can be installed globally using `pip` together wi `--break-system-packages` flag. This flag is to be used with care. +This section addresses various different modules. + ### PyTorch This section addresses the [PyTorch module](https://pytorch.org/). From ac608e09b803c3cdbc17831cb916d39194405a37 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 03:21:50 +0100 Subject: [PATCH 15/22] markup languages: included, linked and expanded LaTeX --- wiki/bibliographic_software.md | 3 ++- wiki/linux/papis.md | 2 +- wiki/ltex.md | 7 ++++--- wiki/markup_language.md | 14 +++++++++++++- wiki/note-taking.md | 3 ++- wiki/pandoc.md | 3 ++- wiki/presentation.md | 2 +- 7 files changed, 25 insertions(+), 9 deletions(-) diff --git a/wiki/bibliographic_software.md b/wiki/bibliographic_software.md index 89e4570..84f41e7 100644 --- a/wiki/bibliographic_software.md +++ b/wiki/bibliographic_software.md @@ -6,4 +6,5 @@ It produces citations for the stored records that are used in scholarly research ## Software Solutions - [Papis](/wiki/linux/papis.md) is a [command-line based](/wiki/linux/shell.md) for - [Linux](/wiki/linux.md) bibliography manager that can be used for LaTeX using the BibTeX format. + [Linux](/wiki/linux.md) bibliography manager that can be used for + [LaTeX](/wiki/markup_language.md#latex) using the BibTeX format. diff --git a/wiki/linux/papis.md b/wiki/linux/papis.md index f086f62..43e8ced 100644 --- a/wiki/linux/papis.md +++ b/wiki/linux/papis.md @@ -2,7 +2,7 @@ [Papis](/wiki/linux/papis.md) is a [command-line based](/wiki/linux/shell.md) for [Linux](/wiki/linux.md) [bibliography manager](/wiki/bibliographic_software.md) that can be used -for LaTeX using the BibTeX format. +for [LaTeX](/wiki/markup_language.md#latex) using the BibTeX format. ## Setup diff --git a/wiki/ltex.md b/wiki/ltex.md index a843290..f821913 100644 --- a/wiki/ltex.md +++ b/wiki/ltex.md @@ -2,7 +2,8 @@ [LTeX](https://valentjn.github.io/ltex/index.html) is an offline grammar checking tool that can use the Language Server Protocol - short LSP. -It is supports various [Markup languages](/wiki/markup_language.md) like LaTeX and Markdown. +It is supports various [Markup languages](/wiki/markup_language.md) like +[LaTeX](/wiki/markup_language.md#latex) and Markdown. ## Setup @@ -48,8 +49,8 @@ onwards. ``` However this can be difficult when only using a few words. -Another easy and generally recommended way to change the language inside LaTeX documents is using -the babel package. +Another easy and generally recommended way to change the language inside +[LaTeX](/wiki/markup_language.md#latex) documents is using the babel package. In the following examples `` is the language indicator that babel uses (for example `english`, `american`, `ngerman`). diff --git a/wiki/markup_language.md b/wiki/markup_language.md index 75f6317..76e20de 100644 --- a/wiki/markup_language.md +++ b/wiki/markup_language.md @@ -1,7 +1,7 @@ # Markup Language A markup Language is way to encode text so that it has great amounts of structure and formatting. -The most common markup languages are [HTML](#html), Markdown, LaTeX and [XML](#xml). +The most common markup languages are [HTML](#html), Markdown, [LaTeX](#latex) and [XML](#xml). Markup languages can be used for [note-taking](/wiki/note-taking.md). Adding to normal markdown files, there are also `.mdx` files which allows the usage of JavaScripts JSX in the markdown content for displaying charts and more. @@ -28,3 +28,15 @@ One of the most used ones is the ### XML XML is a markup language often used together with [RSS Feeds](/wiki/rss.md). + +### LaTeX + +LaTeX provides a high-level, descriptive markup language. +It is mostly used in the scientific community but can be used for many things and as an alternative +to [Microsoft Word](/wiki/office_suite.md#programs). + +LaTeX also features many different packages. +The following list contains some examples of it. + +- [ZUGFeRD](https://ctan.org/pkg/zugferd) is a package for creating invoices. +- [Awesome-CV](https://github.com/posquit0/Awesome-CV) is a package for creating job applications. diff --git a/wiki/note-taking.md b/wiki/note-taking.md index d8d4c36..33511d0 100644 --- a/wiki/note-taking.md +++ b/wiki/note-taking.md @@ -10,6 +10,7 @@ The following list shows various ways of digital note-taking. - [saber](https://github.com/saber-notes/saber) is a cross-platform app - available for [Android](/wiki/android.md), [Windows](/wiki/windows.md), MacOS and [Linux](/wiki/linux.md). It is mainly used for handwriting notes and annotating PDFs and images. -- [Markup](/wiki/markup_language.md) languages like Markdown or LaTeX can be used to type notes. +- [Markup](/wiki/markup_language.md) languages like Markdown or + [LaTeX](/wiki/markup_language.md#latex) can be used to type notes. An easy template that combines the simplicity of Markdown and the features of LaTeX is [the Eisvogel Panoc-Latex-Template](https://github.com/Wandmalfarbe/pandoc-latex-template). diff --git a/wiki/pandoc.md b/wiki/pandoc.md index cbaddca..d541f0e 100644 --- a/wiki/pandoc.md +++ b/wiki/pandoc.md @@ -10,7 +10,8 @@ This section focusses on the usage of Pandoc. ### Converting MS Word to LaTeX By using the following command a proprietary Microsoft Word document (named `input.docx` in this -example) can be converted to a file in LaTeX-Format (in this example named `output.tex`). +example) can be converted to a file in [LaTeX](/wiki/markup_language.md#latex)-Format (in this +example named `output.tex`). ```sh pandoc input.docx -o output.tex diff --git a/wiki/presentation.md b/wiki/presentation.md index 6e2212d..3224862 100644 --- a/wiki/presentation.md +++ b/wiki/presentation.md @@ -11,7 +11,7 @@ The following is a list of these tools. It can be used on dual screen setup to give the presenter an additional slide for comments. - PDF files can easily be used for presenting cross-platform but often used for [Linux-based operating systems](/wiki/linux.md). - They can easily be generated by LaTeX. + They can easily be generated by [LaTeX](/wiki/markup_language.md#latex). - [pympress](https://github.com/Cimbali/pympress) is a cross-platform tool for the presentation via PDF files. It is also usable for dual screen setups. From 93479aa78d27974c9bf9d777da3740f0237b7133 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 08:24:28 +0100 Subject: [PATCH 16/22] x: added compose key --- wiki/linux/x_window_system.md | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/wiki/linux/x_window_system.md b/wiki/linux/x_window_system.md index 76a0ef9..d912a4a 100644 --- a/wiki/linux/x_window_system.md +++ b/wiki/linux/x_window_system.md @@ -23,14 +23,14 @@ One of them is `slock` by [suckless](/wiki/linux/suckless.md). This will stand in as a screen locker for this section. The screen can be run by simply running the following command. -```sh +```sh slock ``` By default this will not be run automatically when the computer goes into sleep. This can be changed by installing and using `xss-lock` like the following example shows. -```sh +```sh xss-lock -- slock & ``` @@ -74,7 +74,7 @@ can be used that uses `synclient TouchpadOff=1` or `synclient TouchpadOff=0`. This requires `xf86-input-synaptics` which is a synaptics driver for notebook touchpads. -##### Enable Tap to Click +##### Enable Tap to Click On Touchpads the tap to click option can be enabled by adding the following lines to the config file `/etc/X11/xorg.conf.d/99-synaptics-overrides.conf`. @@ -108,6 +108,25 @@ setxkbmap -query | grep -q '' && setxkbmap || setxkbmap ` (for example the right control key with `rctrl`) to act as +the compose key when tapped. +`` specifies the layout of the keymap (for example german with `de`). +If it is omitted the english `en` layout will be set. + +```sh +setxkbmap -layout -option compose: +``` + #### Display This section describes the handling of displays by X. @@ -147,8 +166,8 @@ Another option to do this is by using the command `xset`. An example for this are the follwing commands which will enable the screensaver to act upon 10 minutes of inactivity. -```sh -xset s on +```sh +xset s on xset s 600 ``` @@ -236,7 +255,7 @@ an [Arch Linux](/wiki/linux/arch-linux.md) [forum post](https://bbs.archlinux.org/viewtopic.php?id=294808). To fix this you can run the following commands to temporarily make the file picker work. -```sh +```sh systemctl --user import-environment DISPLAY XAUTHORITY systemctl --user restart xdg-desktop-portal ``` From f73e7d8ecc770ae99b3f890e80be588f4e9ad3a2 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 23 Dec 2025 14:52:35 +0100 Subject: [PATCH 17/22] linux/suckless: link dwl --- wiki/linux/suckless.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wiki/linux/suckless.md b/wiki/linux/suckless.md index 510bcc8..6050a8e 100644 --- a/wiki/linux/suckless.md +++ b/wiki/linux/suckless.md @@ -8,6 +8,9 @@ Notable works of Suckless are the following. - [ii](https://tools.suckless.org/ii/) is an IRC client - [slock](https://tools.suckless.org/slock/) is a screen locker - [st](https://st.suckless.org/) is a [terminal](/wiki/linux/system_console.md) +- [dwl](https://codeberg.org/dwl/dwl) is a window manager similar to dwm that can be used on + [Wayland](/wiki/linux/wayland.md) systems. + For the IPC-patch [dwlmsg](https://codeberg.org/notchoc/dwlmsg) can also be used. Additionally to this Suckless maintains a list of free and open-source software that is endorsed by Suckless. From 90c8863021a8e5ce5154606d76224ad4be6e4992 Mon Sep 17 00:00:00 2001 From: tiyn Date: Thu, 1 Jan 2026 16:37:05 +0100 Subject: [PATCH 18/22] linux/nvidia: pascal-gpu usage --- wiki/linux/nvidia.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wiki/linux/nvidia.md b/wiki/linux/nvidia.md index 82e9c61..b206849 100644 --- a/wiki/linux/nvidia.md +++ b/wiki/linux/nvidia.md @@ -32,3 +32,19 @@ In `nvidia-settings` under `X Server Display Configuration` select your display and click on `Advanced` and select either `Force Composition Timeline` or `Force Full Composition Timeline`. + +### Pascal-GPUs and New Drivers + +On some operating systems like [Arch Linux](/wiki/linux/arch-linux.md) the newer versions of +drivers are not compatible with Pascal GPUs anymore as explained in +[the german Arch forum](https://www.archlinux.de/news/35689-Nvidia-Treiber-ab-Version-590-stellen-den-Support-fuer-Pascal-GPUs-ein). +This is due to the drop of support for these cards from Nvidias site. +If Pascal-GPUs are still used some minor changes need to be performed and some packets need to be +replaced. +On Arch Linux-based systems this can be achieved by replacing the packages `nvidia-open` and +`nvidia-open-utils` with `nvidia-580xx-dkms`, `nvidia-580xx-utils` and `lib32-nvidia-580xx-utils`. +If upgrading from a Pascal-GPU to a newer version this change needs to be undone. + +After the packages are changed it is important to +[rebuild the initial ramdisk](/wiki/linux/mkinitcpio.md#manually-generate-initial-ramdisk) and +reboot the system. From c070ba1d7b6ec2936b0a770c06a7356a5c569a85 Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 5 Jan 2026 15:32:40 +0100 Subject: [PATCH 19/22] linux/pacman: error with database files added --- wiki/linux/package_manager/pacman_and_aur.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wiki/linux/package_manager/pacman_and_aur.md b/wiki/linux/package_manager/pacman_and_aur.md index 8029348..de3c225 100644 --- a/wiki/linux/package_manager/pacman_and_aur.md +++ b/wiki/linux/package_manager/pacman_and_aur.md @@ -335,3 +335,16 @@ To update the package either way the following command can be used. ```sh sudo pacman -S --overwrite "*" ``` + +### Error `error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format` + +If the error `error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format` +or a similar one with another database file is thrown it can mostly be easily fixed by removing the +database file with the following command. + +```txt +rm -rf /var/lib/pacman/sync/* +``` + +Alternatively - and this is probably a bit safer - the files can be temporarily be moved somewhere +else and removed after confirming the error was fixed. From 47081f9ab68b8c7cad5eacbec1da6d2e753dd3c9 Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 5 Jan 2026 17:07:26 +0100 Subject: [PATCH 20/22] added vencord as standalone article --- wiki/discord.md | 2 +- wiki/vencord.md | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 wiki/vencord.md diff --git a/wiki/discord.md b/wiki/discord.md index 3ba20b0..611a18e 100644 --- a/wiki/discord.md +++ b/wiki/discord.md @@ -12,7 +12,7 @@ There are some alernative frontends and modifications available for Discord. - [BetterDiscord](/wiki/betterdiscord.md) is a modification for Discord on [Linux-based systems](/wiki/linux.md), which changes an existing installation of Discord. It supports a wide range of plugins and themes. -- [Vesktop](https://github.com/Vencord/Vesktop) is a standalone custom Discord App. +- [Vencord](/wiki/vencord.md) is a standalone custom Discord App. It supports a wide range of plugins and themes. - [Revenge](https://github.com/revenge/revenge-manager) is a standalone client modification of Discord for [Android](/wiki/android.md). diff --git a/wiki/vencord.md b/wiki/vencord.md new file mode 100644 index 0000000..c620a85 --- /dev/null +++ b/wiki/vencord.md @@ -0,0 +1,24 @@ +# Vencord + +[Vencord](https://vencord.dev/) is an unofficial [Discord](/wiki/discord.md) client mod which +allows the user to add various functionality through plugins and new themes. +Unlike [BetterDiscord](/wiki/betterdiscord.md) it is a standalone client and does not need the +official Discord client installed. + +## Setup + +The Vencord program can be installed using files from +[the official website](https://vencord.dev/download/). +Alternatively many [Linux](/wiki/linux.md) [package managers](/wiki/linux/package_manager.md) +package Vesktop in the `vesktop` (or `vesktop-git` and `vesktop-bin`) package. + +## Usage + +This section addresses the usage of Vesktop. + +### Useful plugins + +The following is a list of useful plugins for Vesktop. + +- [PinDMs](https://vencord.dev/plugins/PinDMs) is a plugin that allows to pin private channels to + the top of the list of direct messages From 620f57beb8946e72af2850ea8fe567966fc084ca Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 5 Jan 2026 17:11:23 +0100 Subject: [PATCH 21/22] added gimp as standalone article --- wiki/gimp.md | 20 ++++++++++++++++++++ wiki/image.md | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 wiki/gimp.md diff --git a/wiki/gimp.md b/wiki/gimp.md new file mode 100644 index 0000000..b1d69aa --- /dev/null +++ b/wiki/gimp.md @@ -0,0 +1,20 @@ +# GIMP + +[GIMP](https://www.gimp.org/) is a popular cross-platform program for editing pictures. + +## Setup + +The GIMP program can be installed from files found on +[the official website](https://www.gimp.org/downloads/). +Alternatively many [Linux](/wiki/linux.md) [package managers](/wiki/linux/package_manager.md) +package GIMP in the `gimp` package. + +## Usage + +This section addresses the usage of GIMP. + +### Scale Image + +An image that is already loaded into GIMP can easily be scaled down (or up) by selecting +`Scale Image` under the `Image` tab. +Alternatively the scale tool reachable via `Ctrl+S` can be used. diff --git a/wiki/image.md b/wiki/image.md index bd6af89..31e8973 100644 --- a/wiki/image.md +++ b/wiki/image.md @@ -15,7 +15,7 @@ This entry also features medicinal image and visual formats such as DICOM. Editing images can be done by various image manipulation software. -- [GIMP](https://www.gimp.org/) is a popular cross-platform program for editing pictures. +- [GIMP](/wiki/gimp.md) is a popular cross-platform program for editing pictures. - [ImageMagick](/wiki/imagemagick.md) is another cross-platform software suite for creating and - editing (raster) images. - [upscayl](https://github.com/upscayl/upscayl) is an upscaler that can be used cross-platform. From 5849b76ee81f0af3ea8bc1681031eef4e587548f Mon Sep 17 00:00:00 2001 From: tiyn Date: Sat, 10 Jan 2026 04:20:52 +0100 Subject: [PATCH 22/22] markup/latex: setup background color --- wiki/markup_language.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/wiki/markup_language.md b/wiki/markup_language.md index 76e20de..79eba5b 100644 --- a/wiki/markup_language.md +++ b/wiki/markup_language.md @@ -40,3 +40,20 @@ The following list contains some examples of it. - [ZUGFeRD](https://ctan.org/pkg/zugferd) is a package for creating invoices. - [Awesome-CV](https://github.com/posquit0/Awesome-CV) is a package for creating job applications. + +#### Usage + +This section addresses the usage of LaTeX. + +##### Set Background Color + +The background color can be set using the `xcolor` package and the `\pagecolor` command. +The following lines show a working example where the background color is set to the hexadecimal +color ``. +This needs to be changed (for example to `E0D6C0` for a parchment like color). + +```tex +\usepackage{xcolor} +\definecolor{background}{HTML}{} +\pagecolor{background} +```