zip – One tool that WORKS for all archives and compressed files

I have been using 7z, unrar , Peazip and Archive Manager and what not and I am having a hard time matching the compressed file/archive file with the appropriate tool for extracting.

The default ubuntu archive manager doesn’t work for all type of file neither does 7z.

So what I am looking for is an utility that lets me extract any type of file. (for eg in windows 7zip does everything for me and I don’t have to do anything. I am looking for something equivalent)

post thumbnails – Featured Images Not Loading In Blog Archives

A client running a custom theme recently updated their WordPress version from 5.2.7 to 5.7.1. After this update, featured images in blog archives are no longer loading.

The theme has been updated to be compatible with the latest WordPress release and is throwing no errors.

To be clear, the markup is there — we have the img tag loading with all necessary data (class, src, srcset, etc.). It’s just that the image itself won’t load, as though it’s missing from the server. I’ve tried removing the featured image, setting a new featured image, and uploading a new featured image. I’ve even tried such a simple thing as clearing my cache, but nothing gets the image to load.

I know this will simply be outdated code, but I’m struggling to locate the precise issue. Featured images are enabled with add_theme_support( 'post-thumbnails' ); and the image is retrieved with echo get_the_post_thumbnail( $post->ID, 'full' );.

I’ve tried regenerating thumbnails with Regenerate Thumbnails in case of any errors, with no success.

Any insight as to how this can be corrected would be much appreciated.

windows – Extracting multiple password-protected archives located in multiple sub-directories

There is a folder that contains many folders and subfolders, and each of these contains any number of password-protected 7zip archives. The password is the same for all of them. These are single-layer archives (no archives within archives).

I am trying to extract all of them in a single command in such a way that:

  1. Every file will be extracted to the directory in which its original archive was located without a subfolder being created for it,
  2. Each original archive file will be deleted,
  3. and the password will be input automatically by the command.

I already know this needs to be some kind of script since the 7zip context menu doesn’t allow to do this AFAIK. However, I am not well-versed in command-line usage and would really appreciate if someone could provide a script I could copy-paste…

I already looked through a bunch of answers, including the following that describe a similar situation minus the password aspect:

apt – WSL G++ Unable to fetch some archives

A lot of people have asked very similar questions to this but none of those worked for me. I am trying to install g++ on WSL (windows subsystem for linux). I tried to use root and turned of my firewall but it still does not work. I tried update and upgrade but that did not help. I used sudo apt-get install g++ (I tried using –fix-missing but that also did not help)

Errors:

Ign:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9 amd64 9.3.0-17ubuntu1~20.04
Ign:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 g++-9 amd64 9.3.0-17ubuntu1~20.04
Err:1 http://security.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9 amd64 9.3.0-17ubuntu1~20.04
  Connection failed (IP: 91.189.88.142 80)
Err:2 http://security.ubuntu.com/ubuntu focal-updates/main amd64 g++-9 amd64 9.3.0-17ubuntu1~20.04
  Connection failed (IP: 91.189.88.142 80)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/gcc-9_9.3.0-17ubuntu1~20.04_amd64.deb  Connection failed (IP: 91.189.88.142 80)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/g++-9_9.3.0-17ubuntu1~20.04_amd64.deb  Connection failed (IP: 91.189.88.142 80)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Full Log:

sudo apt-get install g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-9 g++-9 gcc gcc-9 gcc-9-base libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev
  libctf-nobfd0 libctf0 libgcc-9-dev libgomp1 libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev manpages-dev
Suggested packages:
  binutils-doc cpp-doc gcc-9-locales g++-multilib g++-9-multilib gcc-9-doc gcc-multilib make autoconf automake libtool flex bison gdb gcc-doc gcc-9-multilib glibc-doc
  libstdc++-9-doc
The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-9 g++ g++-9 gcc gcc-9 gcc-9-base libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0
  libcrypt-dev libctf-nobfd0 libctf0 libgcc-9-dev libgomp1 libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev
  manpages-dev
0 upgraded, 31 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.6 MB/38.7 MB of archives.
After this operation, 169 MB of additional disk space will be used.
Do you want to continue? (Y/n) Y
Ign:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9 amd64 9.3.0-17ubuntu1~20.04
Ign:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 g++-9 amd64 9.3.0-17ubuntu1~20.04
Err:1 http://security.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9 amd64 9.3.0-17ubuntu1~20.04
  Connection failed (IP: 91.189.88.142 80)
Err:2 http://security.ubuntu.com/ubuntu focal-updates/main amd64 g++-9 amd64 9.3.0-17ubuntu1~20.04
  Connection failed (IP: 91.189.88.142 80)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/gcc-9_9.3.0-17ubuntu1~20.04_amd64.deb  Connection failed (IP: 91.189.88.142 80)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/g++-9_9.3.0-17ubuntu1~20.04_amd64.deb  Connection failed (IP: 91.189.88.142 80)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

rman – Does Oracle use rowid to recover from redo log and archives?

I am learning about supplemental logging and this questios has came into my mind. What I have understood is, Oracle just save an image of the modified column in redo logs, that is why we need to enable supplemental logging to use log miner or golden gate for example, then we will have sufficient information to reconstruct the modified rows using sql apply. But when Oracle does not have any supplemental logging enabled, how oracle recover this images during a recover situation, I mean, for example recover database from RMAN, is it by rowid?

digital signature – gnu gcc source archives signed with expired GPG key?

The pedantic answer to your question is: when gcc-9.3.0 was released, the key was not yet expired:

$ gpg --verify gcc-9.3.0.tar.gz.sig gcc-9.3.0.tar.gz
gpg: Signature made Thu 12 Mar 2020 07:32:47 AM EDT
gpg:                using DSA key A328C3A2C3C45C06 

The signature was made in March 2020, but the key expired in September 2020:

gpg --list-keys A328C3A2C3C45C06
pub   dsa1024/A328C3A2C3C45C06 2004-04-21 [SC] [expired: 2020-09-10]
      33C235A34C46AA3FFB293709A328C3A2C3C45C06

So, the fact that it’s expired now is not a cause for concern.

What is the cause for concern is that it’s a 1024/DSA key, which is probably not considered sufficiently strong these days. However, I can also see that the author has a newer key created in May, 2020:

pub   rsa4096/6C35B99309B5FA62 2020-05-28 [SC]
      D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62

So, perhaps the next release of gcc will be signed with this key instead.

archives – How to Get The Excerpt of the page that displays Blog Posts

You can use get_queried_object() to get the static page data, and then do something like so to get the excerpt of the page:

echo get_the_excerpt( get_queried_object() );

// Or to apply filters just as the_excerpt() does:
$excerpt = get_the_excerpt( get_queried_object() );
echo apply_filters( 'the_excerpt', $excerpt );

homepage – Page archives indexed with static home page

I am using a page as the home page (not the standard blogroll).

So now I have all my page archive URL’s going to home page.

For example:
The following page is indexed in google search console:

https://askanydifference.com/page/194/?a%2525252525%25252%252C52525252525252C252Cmp

Even someone has done some negative things to the website by indexing following type of URL’s in search console:

https://askanydifference.com/page/176/?k=real homemade hidden camera&related

When I open that URL, it shows my home page.
Ideally, since the above URL is no longer valid, it should return a 404 error but WordPress seems to redirect it to the home page.

How can I handle the URL’s with /page/….
I am not using any SEO plugins (just doing any customizations using PHP code in headers.php or functions.php in a child theme)

mail.app – Big Sur Mail all archives folder

In Big Sur the mail client doesn’t show a folder combining archives of all accounts. I’d like to have such a folder and tried creating a smart mailbox for this purpose as I’d successfully done to create an All Junk folder.

Here’s the smart mailbox configuration that I thought would work:
smart mailbox rule

However, it throws this error:
smart mailbox error

Any tips on how I can access an archive across accounts?

woocommerce – Set specific number of columns for top level term on product category archives

I’am a bit desperate about this issue im facing. I have tried so much o code tweaking, asking for help and nobody really could help me, maybe this is the place where some one could at least explain how to fix it.
So my task is to make (Main category) to fit 7 objects,products,categories or what ever you want to call them. And do not modify the rest sub-categories.
With some help i got this code:

 add_filter('loop_shop_columns', 'main_product_category_loop_columns', 999);
function main_product_category_loop_columns( $columns ) {
    if( ! is_product_category() )
        return $columns;
    $term = get_queried_object();

    if( $term && is_a($term, 'WP_Term') ) {
        return $term->parent > 0 ? $columns : 7;
    }
    return $columns;

and here what i got:
it’s main category.

enter image description here

and here is sub-category. And the rest subcategories are untouched.
It’s probably a very little tweak needed to fix it. But after hours of trying blindly and not i could not make that happen. Maybe anyone can see the little mistake here ?
thanks in advance.
enter image description here