Categories
Linux Mastering Development

Error: transaction check vs depsolve… php dependencies

I’m trying to run sudo dnf system-upgrade download –refresh –releasever=30 –allowerasing (from fedora 25) and hitting the following errors. Running transaction check Error: transaction check vs depsolve: (php-composer(symfony/expression-language) >= 2.8 with php-composer(symfony/expression-language) < 5) is needed by php-phpmyadmin-motranslator-4.0-4.fc30.noarch (gcc >= 9 with gcc < 10) is needed by annobin-8.71-4.fc30.x86_64 (php-composer(symfony/translation) >= 2.7.1 with php-composer(symfony/translation) < […]

Categories
Linux Mastering Development

Make wget save a page files in a single specific directory

When I save webpage page via Firefox I get a directory structure like this: . ├── Some Page/ └── Some Page.html So we have got a single .html file and a folder which contains images, javascript, css, etc. Can I obtain the same result (html + single big folder) with wget (or any other command-line […]

Categories
Linux Mastering Development

Upgrading Fedora 25 to 32 “rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by …" errors

After running sudo dnf system-upgrade download –refresh –releasever=32 –allowerasing I get the following gigantic list of errors: rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by python3-audit-3.0-0.19.20191104git1c2f876.fc32.x86_64 rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by kexi-3.1.0-7.fc32.x86_64 rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by kexi-libs-3.1.0-7.fc32.x86_64 rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by alternatives-1.11-6.fc32.x86_64 … After reading https://serverfault.com/questions/280099/how-do-i-install-an-rpm-that-complains-about-rpmlibfiledigests-4-6-0-1 I gather this is because some […]

Categories
Linux Mastering Development

Why does terminal output seem to be affected by stdout and stderr redirection

I am trying to get a certain piece of output from running a command in my Mac terminal. I’ve noticed that when I run my-command 2> a.txt, I am able to see it in the text file and it no longer outputs in the terminal. However, when I run my_command 1> a.txt, I don’t see […]

Categories
Linux Mastering Development

Fail to install tcpdump package in UBI8 (Read hat Universal Base Image)

I am building a docker image based on UBI8(Read hat Universal Base Image), Dockerfile looks like FROM registry.access.redhat.com/ubi8/ubi-minimal RUN microdnf install sudo zip tar bash procps openssl iptables net-tools tcpdump && microdnf update; microdnf clean all ENTRYPOINT [ "/usr/sbin/tcpdump" ] But it failed to install tcpdump package. Downloading metadata… error: No package matches ‘tcpdump’ (process:57): […]

Categories
Linux Mastering Development

Need some help to build my script

If I wanted to see the contents of one file data in another file how can i see that? For example I have one file named test inside which i have some path contents and another file test1 which has less path content: Inside test file: /home/ram/a.txt /home/ram/b.txt /home/shyam/c.txt /home/bhim/a.txt Inside test1 file: /home/ram/a.txt I […]

Categories
Linux Mastering Development

Bash: convert 100,000+ characters to decimal format?

I’m looking for a quick and not-so CPU intensive solution to convert 100,000+ lines of text into decimal format. # random ascii string=’QPWOEIRUTYALSKDJFHGZMXNCBV,./;[]75498053$#!@*&^%(*’ convert () { for ((b=0; b<${#string}; b++ )) do # convert to dec, append colon character, add to array arr+=$(printf ‘%d,’ "’${string:$b:1}"); done; # show array contents printf ‘%s’ "${arr[@]::-1}" } time […]

Categories
Linux Mastering Development

GRUB Bootloader depends on my bootable flash drive to find Windows 10 on the internal eMMc drive

For the rest of this question, you can assume anything with ‘internal’ refers to the internal eMMc drive of my laptop, anything with ‘USB’ refers to my bootable USB flash drive, ‘Debian’ means Debian Buster and ‘Windows’ means Windows 10. I have Windows installed on the internal drive and Debian installed on a bootable USB […]

Categories
Linux Mastering Development

Can’t install Realtek ethernet driver on Debian 10

I am a relatively inexperienced linux user, I used Mint before and now I’m trying Debian. After configuring my interfaces I restarted my PC and while booting I noticed an error about network card firmware, and since there was only Windows on this machine before I figured I probably just need a linux driver for […]

Categories
Artificial Intelligence (AI) Mastering Development

Get Neural Network to predict a tag/class on a certain word using the surrounding words as context [PyTorch]?

I am somewhat a novice at the topic of Neural Netoworks and PyTorch. I am trying to create a model that takes a word (that I have modified very slightly) and a ‘window’ of context around it and predicts one of 5 tags (the tags relate to what sort of action I should perform on […]