Articles containing useful examples

Example Service About Automatic Restoration of iptables

In some cases, we need to load iptables after everything has started. The following is an example of a service to accomplish this. The service starts when the server is idle, checks for the executable file, and then starts it. [Unit] Description=runs iptables restore on boot ConditionPathExist=/etc/iptables-my/ [Service] Type=idle User=root ExecStart=/etc/iptables-my/ RemainAfterExit=yes GuessMainPID=no [Install]

2024-06-29T12:19:38+03:00By |Categories: How To|0 Comments

Experience With Setting Up Ports

Sometimes, when you don't work with a specific system, you can forget how to set it up or check its settings. This happened to me when I set up an Ubuntu server. It had been 6-7 years since I last worked on this type of server, and I missed out on some new features and

2024-06-29T11:45:48+03:00By |Categories: How To|0 Comments

Import JSON file in TypeScript

In this example, I will show you a simple way to import JSON files in TypeScript code. It requires just two simple steps. The first is to change the tsconfig.json file by adding the line: , "resolveJsonModule": true in "compilerOptions" section. { "compilerOptions": { ... , "resolveJsonModule": true ... } ... } After that, you have

2022-09-13T21:14:21+03:00By |Categories: How To|0 Comments

Install Django and Verify It

Django is a Python framework used to create websites. Installation is easy. The recommended way is to use pip. python -m pip install Django This will install Django and you will see something like this: Django instalation using pip After the installation is complete you can verify it using this code: import django print(django.get_version()) If

2020-11-15T21:15:44+02:00By |Categories: How To|0 Comments

KiCad – Create Template

KiCad templates are used to create projects with common settings. Templates can contain everything you need for a new project, for example, table and graphic formating, board outlines, schematic elements, etc. You can create a KiCad template with the following easy steps: Create a project with the settings you needAdd a folder named meta in

2020-07-26T19:33:56+03:00By |Categories: How To|1 Comment

KiCad – Annotate Schematic Elements

When you create a schematic, you need to annotate it. If you have a few elements, it is easy to do it manually. For larger schematics, it is better to use automatic annotation. KiCad provides this capability using an easy to use interface. Tools menu Select the "Tools" menuClick "Annotate Schematic..."When the window is opened

2020-06-21T16:28:59+03:00By |Categories: How To|0 Comments

Prusa i3 MK3S Filament Sensor rev. 0.4 and FW 3.9.0

In the latest firmware release (at the time of writing this article) Prusa Research added a feature for filament sensor recognition (available for i3 MK3S only). Essentially the printer can tell when then filament sensor is disconnected and can interrupt the print and wait for user action. More details can be found in their GitHub

2020-05-31T12:47:21+03:00By |Categories: How To, Embedded Systems|Tags: |0 Comments

Prusa i3 MK3/MK3S Backlight Control in FW 3.9.0

Prusa has introduced a new firmware version for their line of 3D printers. One of the cool new features is the capability to control the display's backlight intensity from the settings menu. There is a big chance that this option will not work if your 3D printer was produced early 2019 or before. The reason is

2020-05-26T17:55:12+03:00By |Categories: How To, Embedded Systems|Tags: |0 Comments

Rust error[E0554]

This Rust error (E0554) is simple and it occurs when we try to install/build projects with a stable version of Rust. The first step is to run the following command: rustup install nightly After that, you can run your cargo command. For example: cargo +nightly build If your encounter the error when you install a

2020-04-05T23:55:20+03:00By |Categories: How To|0 Comments

Node.js Config Files

Sometimes we need to create and use configuration files. One of the ways to create and use configurations is by using a config module. The first step is to install it using the following command: npm install config When we do this we have to create a directory with a name "config"(directory name/path can be

2020-03-29T15:39:40+03:00By |Categories: How To|0 Comments
Go to Top