Windows wants to install an old version even though i have the latest one, already downloaded it just needs restart, how do i know if it’s safe?

Here is the screenshot of my updates history/status.

https://www.dropbox.com/s/n0x2zvix5nh99zg/Screenshot%20%281%29.png?dl=0

Here in this dropbox picture there are 2 comments with all the info.

Not able to understand this problem ( home page – latest posts) not showing properly

Hi i am working on my friend’s site it is using gwangi theme (https://community.gwangi-theme.com/) and my website is https://www.tamilpeoples.ml/

it is working fine in localhost (xampp) but after i upload it to my hosting server only home page shows extra contents below footer. ( if i de activate 4 plugins) it is working fine but without these plugins functions are not working. somebody help plz

Display list of posts from taxonomy term, but display the latest post featured image

I’m trying to do a page where all posts from a custom post type list, divided by their taxonomy terms and having a big photo on top of the list (latest featured image from said term). Right now I have the following code, but it displays the wrong images (each term should show latest post’s featured image, and I’m not even sure why the images are just random, even in the wrong term):

<section id="" class="">  <?php      }     wp_reset_query();   $  tax = 'technology-category';      $  terms = get_terms( $  tax ,array(          'orderby'    => 'ID',         'order'      => 'ASC',         'hide_empty' => 0,     ));      //Loop throug each taxonomy terms,      foreach ( $  terms as $  term ) {          //Query argument for post     $  args = array(              'post_type' => 'technology', // Or Custom Post Type,              'order' => 'DESC',              'orderby' => 'date',             'taxonomy' => $  tax,             'term' => $  term->slug, // Query posts for each term based on term slug         );         $  query = new WP_Query( $  args );          $  posts = $  query->get_posts();          ?>  <div class="container-fluid tech-cat-item py-5">     <div class="container">     <div class="row align-items-center pb-3">     <div class="col-1">     <img class="img-fluid" src="<?php echo z_taxonomy_image_url($  term->term_id); ?>"> </div> <div class="col-11">     <h3><?php echo $  term->name;?></h3> </div> </div> <?php //Do query to get image?        $  ga_item = array(             'post_type' => 'technology',               'order' => 'DESC',              'orderby' => 'date',             'taxonomy' => $  tax,             'term' => $  term->slug,              'posts_per_page' => '1', //just one because only need the latest post's featured image );        $  ga_query = new WP_Query( $  ga_item );         $  ga_posts = $  query->get_posts();     if ( $  ga_query->have_posts() ) {     while ( $  ga_query->have_posts() ) { $  ga_query->the_post(); ?>     <div class="row ga-panel py-5">     <div class="col-12">         <?php          $  ga_url = get_the_post_thumbnail_url($  post->ID,'full'); ?>         <img class="img-fluid ga-img" src="<?php echo esc_url($  ga_url);?>">     </div>     </div> <?php } } wp_reset_query(); ?>     <div class="row">         <?php          if ( $  posts ) {          foreach ( $  posts as $  post ) { ?>              <div class="col-4 ga-links">                 <a href="<?php the_permalink( $  post->ID ); ?>" data-swap="<?php echo esc_url($  ga_url);?>" > <?php echo $  post->post_title; ?></a>             </div>          <?php                     }         }        ?> </div> </div> </div>   <?php  }  wp_reset_query(); ?>                      </section> 

I get error when use %spinfile2% in the latest version !

Hi
I usually use links in my project like this way 
http://%spinfile2-c:/tiers/links.txt%
It is working fine in the last version But in the current version 
It is not working and acts that  http://%spinfile2-c:/tiers/links.txt%
is my link.
Note: I use to add “http://”before %spinfile2% and I already remove it from links in the file.
Please help to figure out the issue!
Thanks in Advance 

Tiled gallery not working, latest WordPress visual editor

I am trying to create a tiled gallery using the newest WordPress visual editor as such (this shows up in the editor):

1

But when previewing the site it looks like this:

enter image description here

where the image is super big. Here is the code in the inspector:

enter image description here

and here is what shows up in the code editor:

<!-- wp:jetpack/tiled-gallery {"className":"is-style-square","ids":[3521,3532,3531]} --> <div class="wp-block-jetpack-tiled-gallery aligncenter is-style-square"><div class="tiled-gallery__gallery"><div class="tiled-gallery__row columns-3"><div class="tiled-gallery__col"><figure class="tiled-gallery__item"><img alt="" data-height="2560" data-id="3521" data-link="http://159.89.234.37/pp/img_1100/" data-url="http://159.89.234.37/pp/wp-content/uploads/2019/12/IMG_1100-scaled.jpg" data-width="1920" src="https://i0.wp.com/159.89.234.37/pp/wp-content/uploads/2019/12/IMG_1100-scaled.jpg?resize=1920%2C1920"/></figure></div><div class="tiled-gallery__col"><figure class="tiled-gallery__item"><img alt="" data-height="2560" data-id="3532" data-link="http://159.89.234.37/pp/img_1079/" data-url="http://159.89.234.37/pp/wp-content/uploads/2019/12/IMG_1079-scaled.jpg" data-width="1920" src="https://i1.wp.com/159.89.234.37/pp/wp-content/uploads/2019/12/IMG_1079-scaled.jpg?resize=1920%2C1920"/></figure></div><div class="tiled-gallery__col"><figure class="tiled-gallery__item"><img alt="" data-height="1920" data-id="3531" data-link="http://159.89.234.37/pp/img_1080/" data-url="http://159.89.234.37/pp/wp-content/uploads/2019/12/IMG_1080-scaled.jpg" data-width="2560" src="https://i1.wp.com/159.89.234.37/pp/wp-content/uploads/2019/12/IMG_1080-scaled.jpg?resize=1920%2C1920"/></figure></div></div></div></div> <!-- /wp:jetpack/tiled-gallery --> 

Any ideas?

Postgres: How can I forse index usage for view with latest rates?

We import currency rates into DB:

CREATE TABLE currency_rate (     id int8 NOT NULL,     date date NOT NULL,     currency varchar(3) NOT NULL,     rate numeric(12,6) NOT NULL,     CONSTRAINT currency_rate_pk PRIMARY KEY (id) );  ALTER TABLE currency_rate add constraint currency_rate_un UNIQUE (currency, date); 

but actually we need only the latest available rate to work with.

It is cumbersome to write CTE with sort and distinct on (currency):

with cr as (   select distinct on (currency) currency, rate from currency_rate   order by currency, date) select   ...,   sum((nd.original_amount - nd.new_amount)*cr.rate) as amount from notification_data nd join cr on cr.currency = nd.currency ... 

Query has following execution plan that is nice:

  CTE cr     ->  Result  (cost=0.28..69.66 rows=13 width=16)           ->  Unique  (cost=0.28..69.66 rows=13 width=16)                 ->  Index Scan using currency_rate_un on currency_rate  (cost=0.28..67.17 rows=995 width=16)   ...               ->  Hash Join  (cost=1029.26..57129.68 rows=18 width=60)                     Hash Cond: ((nd.currency)::text = (cr.currency)::text) 

I created view:

CREATE OR REPLACE VIEW latest_currency_rate AS SELECT   DISTINCT ON (currency) currency, rate, date FROM currency_rate ORDER BY currency, date DESC; 

but DB optimizer doesn’t use index from currency_rate_un:

explain select * from latest_currency_rate;  Unique  (cost=60.83..65.38 rows=12 width=16)   ->  Sort  (cost=60.83..63.10 rows=910 width=16)         Sort Key: currency_rate.currency, currency_rate.date DESC         ->  Seq Scan on currency_rate  (cost=0.00..16.10 rows=910 width=16) 

and even for:

explain select * from latest_currency_rate where currency = 'USD';  Unique  (cost=16.87..17.13 rows=12 width=16)   ->  Sort  (cost=16.87..17.13 rows=104 width=16)         Sort Key: currency_rate.date DESC         ->  Bitmap Heap Scan on currency_rate  (cost=5.08..13.38 rows=104 width=16)               Recheck Cond: ((currency)::text = 'USD'::text)               ->  Bitmap Index Scan on currency_rate_un  (cost=0.00..5.06 rows=104 width=0)                     Index Cond: ((currency)::text = 'USD'::text) 

Integration of new view to original query gives:

explain select   sum((nd.original_amount - nd.new_amount)*cr.rate) as amount from notification_data nd join latest_currency_rate cr on cr.currency = nd.currency ...  ...  ->  Hash  (cost=73.54..73.54 rows=13 width=12)        ->  Subquery Scan on cr  (cost=68.37..73.54 rows=13 width=12)              ->  Unique  (cost=68.37..73.41 rows=13 width=16)                    ->  Sort  (cost=68.37..70.89 rows=1008 width=16)                          Sort Key: currency_rate.currency, currency_rate.date DESC                          ->  Seq Scan on currency_rate  (cost=0.00..18.08 rows=1008 width=16) ... 

Now I am puzzled. Why original CTE query uses Index Scan and view doesn’t use the same index?

Should I rewrite view with some alternative trick (instead of distinct on)?

I am thinking about going with materialized view to avoid sequential scans…

Cannot Import Zap AddOn in Owasp Zap latest version [closed]

I downloaded a Zap addon here : https://drive.google.com/file/d/0BxnT8mQMY9e2aHBJT2hpOWhHV00/edit

Now I wanted to import it in my Owasp Zap but I get the following error :

It says : “cannot load specified addon : not before 2.3.0”

I tried to find owasp zap 2.3.0 but I did not find it

Can you help me install this addon on my ZAP (latest version) or find a version of ZAP that would accept it ?

The big problem is that this version is not in the list of available addon in ZAP it’d been easier

enter image description here

How to find latest messageId in the mailcore?

I have 25 Lakh mails in my Gmail account but I want only the latest 7 days message or latest 100 mails only. How can I do it?

function getMails

IndexSet indexSet = IndexSet.indexSetWithRange(new Range(1, Long.MAX_VALUE));     final IMAPFetchMessagesOperation messagesOperation = imapSession.fetchMessagesByUIDOperation(folder,             requestKind, indexSet); 

I want only 100 mails to get:

IndexSet indexSet = IndexSet.indexSetWithRange(new Range(Long.MAX_VALUE-100, Long.MAX_VALUE));     final IMAPFetchMessagesOperation messagesOperation = imapSession.fetchMessagesByUIDOperation(folder,             requestKind, indexSet); 

But it’s not working