Warning: Undefined array key "HTTP_X_FORWARDED_PROTO" in /var/www/html/wp-config.php on line 55

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-config.php:55) in /var/www/html/wp-content/plugins/all-in-one-seo-pack/app/Common/Meta/Robots.php on line 89

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-config.php:55) in /var/www/html/wp-includes/feed-rss2.php on line 8
Without category | ITExplain https://it-explain.com Make difficult tasks easier) Wed, 06 Mar 2024 08:29:48 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.13 How to generate random number in Jenkins https://it-explain.com/how-to-generate-random-number-in-jenkins/ https://it-explain.com/how-to-generate-random-number-in-jenkins/#respond Tue, 10 Oct 2023 11:34:51 +0000 https://it-explain.com/?p=3501 Just use Random() in Groovy. Example:def num = new Random().nextInt(10) In this case num will be an integer number with random value between 0 and 10

Запись How to generate random number in Jenkins впервые опубликована на сайте ITExplain.]]>

Just use Random() in Groovy.

Example:def num = new Random().nextInt(10)

In this case num will be an integer number with random value between 0 and 10

Запись How to generate random number in Jenkins впервые опубликована на сайте ITExplain.]]>
https://it-explain.com/how-to-generate-random-number-in-jenkins/feed/ 0
Windows Server – A service installation section in this INF is invalid https://it-explain.com/windows-server-a-service-installation-section-in-this-inf-is-invalid/ https://it-explain.com/windows-server-a-service-installation-section-in-this-inf-is-invalid/#respond Fri, 15 Sep 2023 06:10:25 +0000 https://it-explain.com/?p=3492 Sometimes on Windows Server, when you try to install a driver for certain devices, you may encounter the error: “A service installation section in this INF is invalid.” In most of cases this means that some components in Windows, like Wireless-Network, are not installed. For fix it find corresponding service using PowerShell command Get-WindowsFeature and […]

Запись Windows Server – A service installation section in this INF is invalid впервые опубликована на сайте ITExplain.]]>

Sometimes on Windows Server, when you try to install a driver for certain devices, you may encounter the error: “A service installation section in this INF is invalid.” In most of cases this means that some components in Windows, like Wireless-Network, are not installed.

For fix it find corresponding service using PowerShell command Get-WindowsFeature and try to enable this feature using PowerShell command Add-WindowsFeature -Name feature_name

Example for enable WiFi feature: Add-WindowsFeature -Name Wireless-Network

Запись Windows Server – A service installation section in this INF is invalid впервые опубликована на сайте ITExplain.]]>
https://it-explain.com/windows-server-a-service-installation-section-in-this-inf-is-invalid/feed/ 0
How to clone git without/ignore lfs files https://it-explain.com/how-to-clone-git-without-ignore-lfs-files/ https://it-explain.com/how-to-clone-git-without-ignore-lfs-files/#respond Thu, 31 Aug 2023 13:32:42 +0000 https://it-explain.com/?p=3489 Sometimes, especially if the link to LFS is broken or the repository has been moved, it becomes necessary to clone the repository while ignoring LFS. For clone repository without LFS in Linux need to add GIT_LFS_SKIP_SMUDGE=1 before git clone command. Example: GIT_LFS_SKIP_SMUDGE=1 git clone your_repository For Windows in PowerShell: $env:GIT_LFS_SKIP_SMUDGE=1 git clone your_repository

Запись How to clone git without/ignore lfs files впервые опубликована на сайте ITExplain.]]>

Sometimes, especially if the link to LFS is broken or the repository has been moved, it becomes necessary to clone the repository while ignoring LFS.

For clone repository without LFS in Linux need to add GIT_LFS_SKIP_SMUDGE=1 before git clone command.
Example: GIT_LFS_SKIP_SMUDGE=1 git clone your_repository

For Windows in PowerShell: $env:GIT_LFS_SKIP_SMUDGE=1 git clone your_repository

Запись How to clone git without/ignore lfs files впервые опубликована на сайте ITExplain.]]>
https://it-explain.com/how-to-clone-git-without-ignore-lfs-files/feed/ 0
ImportError: no module named ‘ssd1306’ in micropython https://it-explain.com/importerror-no-module-named-ssd1306-in-micropython/ https://it-explain.com/importerror-no-module-named-ssd1306-in-micropython/#respond Sat, 03 Jun 2023 20:38:15 +0000 https://it-explain.com/?p=3477 For fix error ImportError: no module named 'ssd1306'  you should download ssd1306.py library from official micropython repository for libraries – micropython/micropython-lib on GitHub https://github.com/micropython/micropython-lib and copy using pyboard tool. Direct link on this library https://github.com/micropython/micropython-lib/blob/master/micropython/drivers/display/ssd1306/ssd1306.py Steps: 1. Download library https://github.com/micropython/micropython-lib/blob/master/micropython/drivers/display/ssd1306/ssd1306.py 2. Use pyboard tool https://docs.micropython.org/en/latest/reference/pyboard.py.html for copy this file (ssd1306.py) on root folder on the […]

Запись ImportError: no module named ‘ssd1306’ in micropython впервые опубликована на сайте ITExplain.]]>

For fix error ImportError: no module named 'ssd1306'  you should download ssd1306.py library from official micropython repository for libraries – micropython/micropython-lib on GitHub https://github.com/micropython/micropython-lib and copy using pyboard tool.
Direct link on this library https://github.com/micropython/micropython-lib/blob/master/micropython/drivers/display/ssd1306/ssd1306.py

Steps:
1. Download library https://github.com/micropython/micropython-lib/blob/master/micropython/drivers/display/ssd1306/ssd1306.py
2. Use pyboard tool https://docs.micropython.org/en/latest/reference/pyboard.py.html for copy this file (ssd1306.py) on root folder on the board.
3. Try to run import ssd1306

 

Запись ImportError: no module named ‘ssd1306’ in micropython впервые опубликована на сайте ITExplain.]]>
https://it-explain.com/importerror-no-module-named-ssd1306-in-micropython/feed/ 0
Power Bank – Error 188, display flash with all numbers https://it-explain.com/power-bank-error-188/ https://it-explain.com/power-bank-error-188/#respond Thu, 26 Jan 2023 18:23:57 +0000 https://it-explain.com/?p=3425 Nowadays, power banks are becoming increasingly popular as people rely on their devices (such as mobile phones, laptops, cameras and etc) for work, entertainment, and communication. But sometimes power bank with displays doesn’t work and have “188 error” – power bank screen flashing all numbers “188”. In most of cases this error caused by complex […]

Запись Power Bank – Error 188, display flash with all numbers впервые опубликована на сайте ITExplain.]]>

Nowadays, power banks are becoming increasingly popular as people rely on their devices (such as mobile phones, laptops, cameras and etc) for work, entertainment, and communication.

But sometimes power bank with displays doesn’t work and have “188 error” – power bank screen flashing all numbers “188”. In most of cases this error caused by complex power bank malfunction that can be fixed only in service center or as a result of internal power bank protection circuit (for example, overload, short circuit and etc).

In some of cases you can restore power bank by reset – press power bank button on 5,10,15 or 20 seconds for reset. Also you can try to search using sentence “power bank your_powerbank_manufacter how to reset”.

If it doesn’t help or have another error – in this case only service center can do repair. If you still have warranty it can be case that will be covered free by warranty.

Запись Power Bank – Error 188, display flash with all numbers впервые опубликована на сайте ITExplain.]]>
https://it-explain.com/power-bank-error-188/feed/ 0
Jenkins – Shell script catch error or error code https://it-explain.com/jenkins-shell-script-catch-error-or-error-code/ https://it-explain.com/jenkins-shell-script-catch-error-or-error-code/#respond Wed, 11 Jan 2023 10:20:59 +0000 https://it-explain.com/?p=3421   By default, shell can break Jenkins pipeline if exit code different from 0. But ideally need to create handler for catch error and provide actions based on error code from script.For catch error code for shell script need to call sh with argument returnStatus: true  Example: def script = "ls -lh"def statusCode = sh(returnStatus: […]

Запись Jenkins – Shell script catch error or error code впервые опубликована на сайте ITExplain.]]>

 

By default, shell can break Jenkins pipeline if exit code different from 0. But ideally need to create handler for catch error and provide actions based on error code from script.

For catch error code for shell script need to call sh with argument returnStatus: true 

Example:

def script = "ls -lh"
def statusCode = sh(returnStatus: true, script: script)

Запись Jenkins – Shell script catch error or error code впервые опубликована на сайте ITExplain.]]>
https://it-explain.com/jenkins-shell-script-catch-error-or-error-code/feed/ 0
How to run PyTorch on ARM64 devices https://it-explain.com/how-to-run-pytorch-on-arm64-devices/ https://it-explain.com/how-to-run-pytorch-on-arm64-devices/#respond Wed, 23 Nov 2022 12:12:40 +0000 https://it-explain.com/?p=3407 Unfortunately, PyTorch doesn’t have docker builds for arm64, only for amd64. But you can use third-party build from another vendors. I found builds from www.arm.com https://github.com/ARM-software https://github.com/ARM-software/Tool-Solutions/tree/main/docker/pytorch-aarch64 https://hub.docker.com/u/armswdev https://hub.docker.com/r/armswdev/pytorch-arm-neoverse/tags So you can just pull PyTorch image for arm64 from one of images https://hub.docker.com/r/armswdev/pytorch-arm-neoverse/tags  

Запись How to run PyTorch on ARM64 devices впервые опубликована на сайте ITExplain.]]>

Unfortunately, PyTorch doesn’t have docker builds for arm64, only for amd64. But you can use third-party build from another vendors.

I found builds from www.arm.com

  • https://github.com/ARM-software
  • https://github.com/ARM-software/Tool-Solutions/tree/main/docker/pytorch-aarch64
  • https://hub.docker.com/u/armswdev
  • https://hub.docker.com/r/armswdev/pytorch-arm-neoverse/tags

So you can just pull PyTorch image for arm64 from one of images https://hub.docker.com/r/armswdev/pytorch-arm-neoverse/tags

 

Запись How to run PyTorch on ARM64 devices впервые опубликована на сайте ITExplain.]]>
https://it-explain.com/how-to-run-pytorch-on-arm64-devices/feed/ 0
How to run Tensorflow on ARM64 devices https://it-explain.com/how-to-run-tensorflow-on-arm64-devices/ https://it-explain.com/how-to-run-tensorflow-on-arm64-devices/#respond Wed, 23 Nov 2022 12:03:24 +0000 https://it-explain.com/?p=3405 Unfortunately, Tensorflow doesn’t have docker builds for arm64, only for amd64. But you can use third-party build from another vendors. I found builds from www.arm.com https://github.com/ARM-software https://github.com/ARM-software/Tool-Solutions/tree/main/docker/tensorflow-aarch64 https://hub.docker.com/u/armswdev https://hub.docker.com/r/armswdev/tensorflow-arm-neoverse/tags So you can just pull Tensorflow image for arm64: docker pull armswdev/tensorflow-arm-neoverse:latest and run with mount option (-v) docker run -it -v /your_path/:/your_path_in_docker armswdev/tensorflow-arm-neoverse:latest bash  

Запись How to run Tensorflow on ARM64 devices впервые опубликована на сайте ITExplain.]]>

Unfortunately, Tensorflow doesn’t have docker builds for arm64, only for amd64. But you can use third-party build from another vendors.

I found builds from www.arm.com

  • https://github.com/ARM-software
  • https://github.com/ARM-software/Tool-Solutions/tree/main/docker/tensorflow-aarch64
  • https://hub.docker.com/u/armswdev
  • https://hub.docker.com/r/armswdev/tensorflow-arm-neoverse/tags

So you can just pull Tensorflow image for arm64:

docker pull armswdev/tensorflow-arm-neoverse:latest

and run with mount option (-v)

docker run -it -v /your_path/:/your_path_in_docker armswdev/tensorflow-arm-neoverse:latest bash

 

Запись How to run Tensorflow on ARM64 devices впервые опубликована на сайте ITExplain.]]>
https://it-explain.com/how-to-run-tensorflow-on-arm64-devices/feed/ 0
Tmux – How to list sessions and attach/detach to/from session https://it-explain.com/tmux-how-to-list-sessions-and-attach-detach-to-from-session/ https://it-explain.com/tmux-how-to-list-sessions-and-attach-detach-to-from-session/#respond Mon, 14 Nov 2022 08:37:34 +0000 https://it-explain.com/?p=3401 In some new Linux based distributions (such as Oracle Linux, RedHat Linux and etc) screen tool was replaced on tmux that very similar but have different commands for control. For list all sessions run tmux list-sessions For attach to created session run tmux attach -t session_id where session_id – id for session from results tmux list-sessions […]

Запись Tmux – How to list sessions and attach/detach to/from session впервые опубликована на сайте ITExplain.]]>

In some new Linux based distributions (such as Oracle Linux, RedHat Linux and etc) screen tool was replaced on tmux that very similar but have different commands for control.

For list all sessions run tmux list-sessions

For attach to created session run tmux attach -t session_id where session_id – id for session from results tmux list-sessions

For detach from existing session press Ctrl+b together, then release them and press d

Запись Tmux – How to list sessions and attach/detach to/from session впервые опубликована на сайте ITExplain.]]>
https://it-explain.com/tmux-how-to-list-sessions-and-attach-detach-to-from-session/feed/ 0
How to support Ukraine https://it-explain.com/how-to-support-ukraine/ https://it-explain.com/how-to-support-ukraine/#respond Sun, 16 Oct 2022 11:48:14 +0000 https://it-explain.com/?p=3390 Hello! The owner of this website is from Ukraine. Links to some of the biggest funds to support Ukraine: https://savelife.in.ua/ – Come back alive one of the oldest and biggest funds. With reports – you can check your payment in report and check fund expenses. https://bank.gov.ua/ua/about/support-the-armed-forces – official direct support on Ukraine National Bank https://u24.gov.ua/ […]

Запись How to support Ukraine впервые опубликована на сайте ITExplain.]]>
Hello! The owner of this website is from Ukraine. Links to some of the biggest funds to support Ukraine:

  1. https://savelife.in.ua/ – Come back alive one of the oldest and biggest funds. With reports – you can check your payment in report and check fund expenses.
  2. https://bank.gov.ua/ua/about/support-the-armed-forces – official direct support on Ukraine National Bank
  3. https://u24.gov.ua/ – United24, the initiative of the President of Ukraine
  4. https://www.koloua.com/en/donate – founded by experts from the IT industry. Have subscription for regular payments
  5. https://prytulafoundation.org/en/home/support_page – founded by Ukrainian showman Serhiy Prytula
Запись How to support Ukraine впервые опубликована на сайте ITExplain.]]>
https://it-explain.com/how-to-support-ukraine/feed/ 0