python – Is a subclass Liskov Substitutable if it disallows the same invocation of the constructor in the child as in the parent?

Say, I have two classes:

class FTPClient:
    def __init__(self, host, port):
        self._client = FTPDriver(host, port)
  ...

class FTPSClient(FTPClient):
    def __init__(self, host, port, username, password):
        self._client = FTPSDriver(host, port, user=username, password=password)

Objects of type FTPClient may be replaced with objects of type FTPSClient anywhere in the code. However, their __init__ methods are apparently different, so it’s not possible to instantiate them in the same way. Is this a violation of LSP?

archive.php child theme – WordPress Development Stack Exchange

I am trying to implement an archive of all posts in my child theme as followsenter image description here

Currently I am playing with the following WP_Query which I put into archive.php in my child theme

<?php 
$archive_query = new WP_Query(array('post_type'=>'post', 'post_status'=>'publish', 'posts_per_page'=>-1)); ?>
<?php if ( $archive_query->have_posts() ) : ?>

      <?php while ( $archive_query->have_posts() ) : $archive_query->the_post(); ?>
        <div><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
    <?php endwhile; ?>

    <?php wp_reset_postdata(); ?>

<?php else : ?>
    <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>

My questions:

  1. Since the parent theme uses template parts with content.php and archive.php should I copy same folder structure into my parent theme( I know this is recommended approach) or I can just simply use archive.php in my child theme (Note: I also created categories.php and tags.php in my child theme to output those when user clicks on a link on single post view)

  2. How can I output the date as shown in my screenshot?

  3. I don’t want to create an archive page which gets added to the menu. I am just looking to add a link at the botton of the blog page (currently its index.php) saying ‘View Post Archives’. By clicking the link user would be taken to archives view as shown on my screenshot (Note: I checked Codex and the standard approach is to create a template and then apply it to empty page – in this scenario page gets added to the menu and this is not what I am looking for)

The above is just based on my research from Codex and some tutorials, however, if theres a simpler solution to implement the above certainly would appreciate sharing it with me

Is it true that Hillary Clinton and Bill Clinton had Jeffrey Epstein killed cover up their involvement in child rape & sex slave trafficking?

Bill Gates met with him six times after he was charged with sex crimes and registered as a sex offender. Did you see that New York Times article about it? My guess was he was bartering for some names to black mail to get his new world order agenda through, as well as to sleep with that Swedish woman and her daughter. 

Is it true? Well do pedophiles exist? Yes, for sure. On another level they used to celebrate becoming a man or woman in Judaism at 14, the Bah Misvah. I saw good evidence of a cover up, the Podesta brothers, a whole list of famous people who liked to sleep with girls, or boys. The darker part of that isn’t the sex for me, it’s that there’s this real Satanic group who kidnaps kids, breeds them and sells them at auction. It’s a worldwide trade. 

The real dangerous ones are the adrenochrome junkies. That is sick, and that is who you have to find the most. Don’t assume it doesn’t exist. The Catholic church used brutal torture for hundreds of years on millions, the Satanic rituals go back to before the old testament was written. The Vatican allowed a statue of Moloch to be displayed outside the gates of the colosseum, where they fed Christians to the lions. These people are real, you have to investigate, especially the people at the top. 

Remove CSS Attribute by Overriding CSS in Child Theme

I’m assuming that this is happening because the style sheet will only
override the attributes that exist in the parent theme and child
theme; thus, leaving attributes that are NOT in the child theme, in
the parent theme.

That’s not how it works. There’s nothing special about WordPress parent theme and child theme stylesheets. They’re just standard CSS style sheets, and they follow the same rules as any two stylesheets loaded on any other web page.

If you want to “remove” a style from one stylesheet in subsequent stylesheet, you need to provide a new value for it. If you have a position: relative; property, and you want to reset it to its default value you need to use initial:

.mvp-blog-story-img img {
    margin: 0 auto;
    width: 100%;
    min-width: 0px;
    position: initial;
}

Note that initial doesn’t work in Internet Explorer, so if IE support is required, you will need to find out what the default value is and set it to that. For position, that’s static:

.mvp-blog-story-img img {
    margin: 0 auto;
    width: 100%;
    min-width: 0px;
    position: initial;
}

Note that if the element’s position is static then left and right won’t do anything, so you don’t need to reset those.

To find the default values for properties, the MDN web docs CSS reference is a good resource.

wp admin – Remove parent theme’s remove_menu_page action in child theme

My parent theme removes the Comments section of wp-admin in the parent theme:

function remove_all(){
  remove_menu_page('edit-comments.php');
}
add_action('admin_menu', 'remove_all');

I want the Comments section to appear, so I’ve tried to reverse it in the child theme’s functions.php, but the Comments section still doesn’t appear:

add_action( 'init', 'remove_my_action');
function remove_my_action() {
     remove_action( 'remove_all','admin_menu');
}

Do I need to add the Comments menu item in again?

html – Flexbox item shrinking more than its child content

I’m trying to make two columns of items expand/shrink in a bigger column to fill the available space.
Now when I fill 1 of the child divs with items, the other one shrinks below the its items height, making it only like 50% visible, like this:
Light green is the actual item, dark green is the div

I’ve tried using flex-shrink: 0, but once I fill the top div with items, it overflows without the scroll.

I’ve also tried setting min-height, but if I have no items in the top div, the bottom div wont slide in all the way to the top.

Min-height: -webkit-min-content works the same as setting fixed min-height, no scrollbar when i overfill the parent div.

<div class="container no-padding" style="display: flex; align-content: flex-start; flex-direction: column; max-height: 50%">
    <div class="list-group mx-auto no-padding " style="display: flex; flex-direction: column; flex-grow: 1; width: 100%; overflow-y:auto">
        <div class="no-padding" style="flex-shrink: 0">
            <a href="#" class="list-group-item list-group-item-action" id="channel-name">Meow</a>
        </div>
    </div>
    <div class="list-group mx-auto no-padding " id="channel-list" style="display: flex; flex-direction: column; flex-grow: 1; width: 100%; overflow-y:auto">
        <div class="no-padding" style="flex-shrink: 0">
            <a href="#" class="list-group-item list-group-item-action" id="channel-object" name="channel">channel</a>
        </div>
    </div>
</div>

Why so many Trumpers think face masks a political statement? Why cant they comprehend maybe they have seniors at risk, or a sick child?

When you wear a mask, you are protecting your loved ones. If you don’t want to wear a mask, fine. Just stay away from me. I have vulnerable parents, who I would like to be able to visit. Why are so many GOP, I shouldnt say GOP because they are not really Republicans anymore, just Trumplicans. But why don’t these people see we are wearing masks to protect loved ones, and not to make any stupid political statement.

All Titles and Menus changed to “CHILD THEME LOADED”

I’m testing out a theme update on our website using a staged site created by WPStaging. That part seemed to work well. Then I upgraded the theme, created a child theme from it, and applied that child them to it. Now the title of every post, page, and even menu is “CHILD THEME LOADED” (see below). Yet when I edit a page or a post, the correct title is still there (in fact everything about the page or post looks correct in the editor). Any ideas?

Example