gmail – How can I reverse moving messages from archive to trash?

Concerned about space in my gmail I just took a rash and stupid action, and “deleted” everything from the “archive.” I did this on mozilla thunderbird on my mac. It’s clear to me I haven’t lost the messages (They’re now in my gmail trash, plus I have a second laptop that until it syncs has everything where it belongs, and time machine backups from a couple weeks ago….), but I am unsure how to restore the messages (i.e. get them all back in their appropriate folders). I would be happy with either

1) the best way to restore my gmail based on the version sitting on thunderbird on another computer or time machine backup

2) the best way to reverse this mass “deletion”

Do you have suggestions?

I installed Linux Build Support, but I need an archive to build, how can I get this?

I`m building a game for Mac, Windows and Linux, I builded the Windows and Mac game, but in Linux, says that need a x86_64 archive, like the image shows, what do I do?enter image description here

Custom Post Type / Taxonomy not displaying archive

I am trying to use the Atreas Theme:

This is the site I am working on:

All I want is an archive page for my Team Members to display them all in one spot.
I tried adding:
'has_archive' => true'
to the plugin php files directly “cpost-team.php” but I can’t for the life of me find the url for the archive page for Team Members. Either that or I’m missing something else. This is the direct code for this “Custom Posts” (aka Team Members) plugin:


//Define team post type
add_action( 'init', 'cpo_cpost_team' );
function cpo_cpost_team() {
   $show_ui = false;
   if ( defined( 'CPOTHEME_USE_TEAM' ) || cpo_get_option( 'display_team' ) ) {
       $show_ui = true;
   $labels = array(
       'name'               => __( 'Team Members', 'cpo-companion' ),
       'singular_name'      => __( 'Team Member', 'cpo-companion' ),
       'add_new'            => __( 'Add Team Member', 'cpo-companion' ),
       'add_new_item'       => __( 'Add New Team Member', 'cpo-companion' ),
       'edit_item'          => __( 'Edit Team Member', 'cpo-companion' ),
       'new_item'           => __( 'New Team Member', 'cpo-companion' ),
       'view_item'          => __( 'View Team Member', 'cpo-companion' ),
       'search_items'       => __( 'Search Team Members', 'cpo-companion' ),
       'not_found'          => __( 'No team members found.', 'cpo-companion' ),
       'not_found_in_trash' => __( 'No team members found in the trash.', 'cpo-companion' ),
       'parent_item_colon'  => '',

   $member_slug = cpo_get_option( 'slug_team_member' );
   if ( '' == $member_slug ) {
       $member_slug = 'cpo_team';

   $fields = array(
       'labels'              => $labels,
       'public'              => true,
       'publicly_queryable'  => true,
       'exclude_from_search' => true,
       'show_ui'             => $show_ui,
       'query_var'           => true,
       'rewrite'             => array( 'slug' => apply_filters( 'cpotheme_slug_team_member', $member_slug ) ),
       'capability_type'     => 'page',
       'hierarchical'        => false,
       'menu_icon'           => 'dashicons-universal-access',
       'menu_position'       => null,
       'supports'            => array( 'title', 'editor', 'excerpt', 'thumbnail', 'page-attributes' ),

   register_post_type( 'cpo_team', $fields );


//Define admin columns in team post type
add_filter( 'manage_edit-cpo_team_columns', 'cpo_cpost_team_columns' );
if ( ! function_exists( 'cpo_cpost_team_columns' ) ) {
   function cpo_cpost_team_columns( $columns ) {
       $columns = array(
           'cb'             => '<input type="checkbox" />',
           'ctct-image'     => __( 'Image', 'cpo-companion' ),
           'title'          => __( 'Title', 'cpo-companion' ),
           'ctct-team-cats' => __( 'Groups', 'cpo-companion' ),
           'date'           => __( 'Date', 'cpo-companion' ),
           'author'         => __( 'Author', 'cpo-companion' ),
       return $columns;

//Define team category taxonomy
add_action( 'init', 'cpo_tax_teamcategory' );
if ( ! function_exists( 'cpo_tax_teamcategory' ) ) {
   function cpo_tax_teamcategory() {
       $labels = array(
           'name'               => __( 'Member Groups', 'cpo-companion' ),
           'singular_name'      => __( 'Member Group', 'cpo-companion' ),
           'add_new'            => __( 'New Member Group', 'cpo-companion' ),
           'add_new_item'       => __( 'Add Member Group', 'cpo-companion' ),
           'edit_item'          => __( 'Edit Member Group', 'cpo-companion' ),
           'new_item'           => __( 'New Member Group', 'cpo-companion' ),
           'view_item'          => __( 'View Member Group', 'cpo-companion' ),
           'search_items'       => __( 'Search Member Groups', 'cpo-companion' ),
           'not_found'          => __( 'No member groups were found.', 'cpo-companion' ),
           'not_found_in_trash' => __( 'No member groups were found in the trash.', 'cpo-companion' ),
           'parent_item_colon'  => '',

       $slug = cpo_get_option( 'slug_team_category' );
       if ( '' == $slug ) {
           $slug = 'team-group';
       $fields = array(
           'labels'            => $labels,
           'public'            => true,
           'show_ui'           => true,
           'show_in_nav_menus' => true,
           'show_tagcloud'     => false,
           'rewrite'           => array( 'slug' => apply_filters( 'cpotheme_slug_team_category', $slug ) ),
           'hierarchical'      => true,

       register_taxonomy( 'cpo_team_category', 'cpo_team', $fields );

Also based on the code what should the url outcome be? I assumed it should be on:

Additionally my custom taxonomy for team members (groups) is not displaying posts that fall under the given group:
enter image description here

Sorry I’m not great with php. Thank you in advance!!

email – How to quickly find out what the threat nature of a password protected archive without getting infected?

I have recently received an e-mail from an existing support group e-mail box with the following characteristics:

  • written in the language used in company’s HQ (different from English which is the primary communication language)
  • had a zip attachment
  • provides a clear password for the attachment
  • is a reply of a legitimate e-mail I have received from a colleague a few months ago

This seems to be similar to what is described here, so there is very high chance to have received an infected file. After a couple of hours, our security department sent an e-mail related to similar cases happening inside the company.

I am wondering about how to find out the exact nature of the threat in a secure way. I have tried the following (only the first step inside the company, the rest within a VM):

  • checked on VirusTotal, but received 0% detection which makes sense since the engines cannot scan the encrypted archive
  • Checked with the Nanoav which boast about scanning password protected archives, but it does not allow to input the password
  • opened the archive with 7zip and saw a document inside
  • extracted the file using 7zip and uploaded the document to VirusTotal => 13+ engines detected something weird.

Do previewing and extracting the archive impose any security risk or is it only the document inside that can be infected? (in this case it seems to employ a macro).

Question: How to quickly find out what exactly the threat nature of a password protected archive without getting infected?

How to get the list of publication archive URLs without any markup?

Conditional custom publication type / taxonomy on tag archive

I wish to display ONLY the relevant publications for a specific tag. Example: Pet Friendly is a label that applies to restaurants, hotels and parks (all of which are location type CPTs). I understand how to fill out the messages, but I can't figure out how to ONLY display pet friendly restaurants when you click on that specific link. I tried & # 39; is_tax & # 39 ;, & # 39; has_term & # 39; etc. and I am unable to conditionally display ONLY the relevant publications.

ARGS for a custom WP request

 'taxonomy' => 'location-type',
 'field'    => 'slug',
 'term' => 'restaurants',
 'post_status' => 'publish',
 'tax_query' => array(
   'taxonomy' => 'location-amenity',
   'field'    => 'slug',
   'terms' => array('pet-friendly')
'nopaging' => true,
'order' => 'ASC',
'orderby' => 'title'

Extract that I use to fill in the messages

have_posts() ) : ?>
have_posts() ) : $rest_query->the_post(); ?>

I would like to have 2 to 3 additional custom WP requests, but have them conditionally displayed only for "restaurants, hotels or parks". In addition to creating a page template and filling it out correctly this way, I can't figure out how to keep all of the functionality in the animal-friendly tag template.

Any help is greatly appreciated!

archive for custom publication type

I have an archiving date for a custom message type.

It works the way I want it.

But I would like to structure the links differently.

Now it looks like this:

  • April 2021
  • April 2020
  • January 2020
  • November 2019

My goal

Years as buttons

corresponding months as buttons


enter description of image here

My code:

function get_cpt_archives( $cpt, $echo = false )
    global $wpdb; 
    $sql = $wpdb->prepare("SELECT * FROM $wpdb->posts WHERE post_type = %s AND post_status = 'publish' GROUP BY YEAR($wpdb->posts.post_date), MONTH($wpdb->posts.post_date) ORDER BY $wpdb->posts.post_date DESC", $cpt);
    $results = $wpdb->get_results($sql);

    if ( $results )
        $archive = array();
        foreach ($results as $r)
            $year = date('Y', strtotime( $r->post_date ) );
            $month = date('F', strtotime( $r->post_date ) );
            $month_num = date('m', strtotime( $r->post_date ) );
            $link = get_bloginfo('siteurl'). "" . $cpt . "" . $year . "" . $month_num;
            $this_archive = array( 'month' => $month, 'year' => $year, 'link' => $link );
            array_push( $archive, $this_archive );

        if( !$echo )
            return $archive;
        foreach( $archive as $a )
            echo '
  • ' . $a('month') . ' ' . $a('year') . '
  • '; } } return false; }

    I appreciate any help.

    post-processing – How to make the subject smooth and plasticky as seen in many archive photographs?

    To keep it simple: in Adobe Lightroom, the noise reduction sliders give a fluid plastic appearance. The luminance noise slider creates much more effect than the chromatic noise damping slider. Warning: the smoothing effect can easily be exaggerated, so be judicious with it. It’s more frightening when you do too much with people; you can get a little more out of natural non-human subjects, and even more out of manufactured things.

    There are more sophisticated techniques that create layers in Photoshop, which separate the variation in luminance from the variation in color. You then blur the chroma layer (s) enough to achieve the desired smooth complexion, while retaining all the clarity of the skin texture in the luma layer. There are procedures (Google them). I don't use them enough to write a good procedure, but others have made great tutorials. Unlike the noise sliders in Lightroom, this effect creates extremely high-end images, used in advertisements to sell makeup and everything in the fashion world. They can give the subject the skin tone of a 10 year old child, while retaining all the texture that gives the photo a real appearance. In comparison, the plastic aspect of smoothing the luma noise still doesn't look natural.

    SharePoint 2016 – How to archive my unused subsites

    I have a SharePoint 2016 farm, in a site collection, I have many subsites, which are currently not in use. So I want to archive them to reduce space.

    what's the best way to archive subsites?, I would like to save them in one file and whenever we need them, we will extract it and work with them.

    Note that subsites have unique permissions and have lots of custom documents and pages. Therefore, their size exceeds 50 MB. so we want a better solution than saving the site as a template.

    delete a file archive from ansible not in destination directory

    Ansible (v2.9.6) has a unarchive task which can decompress a tar (etc) on a server towards a destination directory. Is it possible to tell it to delete any file from the destination directory which is do not in the archive file?