previous_posts_link & next_posts_link doesn’t generate any output

Hey I am using a WPQuery to loop through and show blog categories in posts. It’s in a page tempplate. has 21 posts and I want them to show 10 per page with navigation links for next pages of 10 posts but below code is not outputting that buttons

enter image description here

<div class="container-blog-post d-flex flex-wrap justify-content-start">          <?php  $  paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;         $  args = array(             'post_type'      => 'post',             'category_name'  => 'blog',             'posts_per_page' => 10,             'orderby'        => 'date',             'order'          => 'DESC',              'paged' => $  paged         );          $  the_query = new WP_Query( $  args ); ?>          <?php if ( $  the_query->have_posts() ) : ?>              <?php while ( $  the_query->have_posts() ) : $  the_query->the_post();                    if(has_post_thumbnail()) {                     $  image = get_the_post_thumbnail_url();                 }else{                     $  image = get_template_directory_uri().'/assets/images/default.svg';                 }                                             $  url   = get_permalink();                 $  title = get_the_title();                 $  text  = excerpt(20);                 $  date = get_the_date();              ?>                                <a href="<?php echo $  url; ?>" class="single-post card">                 <figure class="image-wrapping">                   <img src="<?php echo $  image; ?>" alt="">                 </figure>                 <div class="body-post card-body">                   <h3 class="title-post card-title"><?php echo $  title; ?></h3>                   <p class="card-text line-clamp-2"><?php echo excerpt(10); ?></p>                   <button class="btn-read-more arrow">Read more</button>                   <div class="button-post">                     <span class="date-post"><?php echo $  date; ?></span><span class="author-post"><?php echo the_author(); ?></span>                   </div>                 </div>               </a>                <?php endwhile; ?>                      <div class="previous">                 <?php previous_posts_link(); ?>         </div>         <div class="next">             <?php next_posts_link(); ?>         </div>             <?php wp_reset_postdata(); ?>         <?php endif; ?>        </div> 

How to generate a star onto a render texture with spherical warping

How would one proceduraly generate a star in a compute shader that looks like one of thes two at any size needed. Also any way transfer this into a spherical map, would be appreciated. Goal is to create a spherical skybox of stars, (stars a pre generated, and not just decoration).

So far got accurate positioning of the stars on the spherical skybox but lack the equations to get it looking like I want.

Preferably the one on the right.

enter image description here enter image description here

This below is what I currently have, ~~5 to 15ms processing time, little over 30k stars

enter image description here

Using Unity2019.3.1f1, needs to be compute shader compatible. (if not I will convert it somehow) Render Texture output.

Generate constraints that ensure positive definiteness

What is a good way to generate algebraic constraints that ensure matrix be positive definite? Ideally, I’d be able to do something like below

Solve[# \[Element] Reals & /@ Eigenvalues[A]]

However, this doesn’t directly work. Practical example below uses this to find the norm of a positive linear operator (related issue). It works, but requires AposDefiniteConstraints to be specified manually which I’d like to avoid.

(also tried Thread[Eigenvalues[X] > 0] suggestion from Find minimum with matrix positive-definiteness constraint but I get Maximize returning unevaluated)

(* Find norm of a positive transformation of a positive definite \ d-by-d matrix *) SeedRandom[1]; d = 2; symmetricMatrix[d_] := Array[a[Min[#1, #2], Max[#1, #2]] &, {d, d}]; extractVars[mat_] := DeleteDuplicates@Cases[Flatten@A, _a];  (* using built-in Norm/Simplify too slow, use this helper instead *)  norm[A_] :=    Max[x /. # & /@ Solve[CharacteristicPolynomial[A, x] == 0, x]];  A = symmetricMatrix[d]; Avars = extractVars[A];  B = Mean[#\[Transpose].A.# & /@     Table[RandomReal[{-1, 1}, {d,        d}], {d^2}]]; (* random positive transformation of A *) normA =   norm[A]; normB = norm[B]; AposDefiniteConstraints =    a[1, 1]^2 + 4 a[1, 2]^2 - 2 a[1, 1] a[2, 2] + a[2, 2]^2 >= 0 &&     a[1, 1]^2 + 4 a[1, 2]^2 - 2 a[1, 1] a[2, 2] + a[2, 2]^2 >= 0; Maximize[{normB, normA < 1,    AposDefiniteConstraints}, Avars] (* => {0.7853700810760375`,{a[1,1]\ \[Rule]0.999855037823971`,a[1,2]\[Rule]0.00017274783320670866`,a[2,2]\ \[Rule]0.9997941436806035`}} *)  ``` 

How do you generate random row order in a subquery?

I know other answers here (and here) say to order by newid(). However if I am selecting top 1 in a subquery – so as to generate a random selection per row in the outer query – using newid() yields the same result each time.

That is:

select *,     (select top 1 [value] from lookupTable where [code] = 'TEST') order by newid()) from myTable 

… yields the same lookupTable.value value on each row returned from myTable.

What’s a secure way to generate a keypair from a secret password?

I like to generate a public-private key pair that is seeded from a string. So having the string and the generation algorithm is enough to recreate the keys. I want to do this because I can then combine a password (that I’ll memorize), with a long, secret (randomly generated) text file (that I’ll store securely), and generate a key pair. I’ll then delete the key pair after each usage and regenerate them when needed. Thus, for the keys to be compromised, someone would need both the long text file, and the password in my head. (Or they need to intercept the key in the narrow intervals that it exists.) This seems safer to me than just storing the keys securely, where anyone with physical access to the keys can use them.

PS: I am obviously confident in not forgetting the password.

There is a similar question, but it’s old and doesn’t have a useful answer.

Is EBNF a formal grammar? If yes, how can we generate production rules from EBNF expression?

According to Wikipedia definition EBNF, EBNF is a formal grammar.

My question is that how could I generate production rules base on EBNF expression:

For example:


letter = "A" | "B" | "C" ;

digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;

identifier = letter , { letter | digit | "_" } ;

Generates production rules:

letter ⟶ "A"

letter ⟶ "B"

letter ⟶ "C"

digit ⟶ "0"

digit ⟶ "1"

digit ⟶ "2"

digit ⟶ "3"

digit ⟶ "4"

digit ⟶ "5"

digit ⟶ "6"

digit ⟶ "7"

digit ⟶ "8"

digit ⟶ "9"

identifier ⟶ letter

identifier ⟶ letter noname_nonterminal

noname_nonterminal ⟶ letter

noname_nonterminal ⟶ digit

noname_nonterminal ⟶ "_"

Thank you for your reading,

50 Ways to Generate More Money in Network Marketing (Practicing the Obvious)

On the off chance that the craft of Network Marketing is Afghanistan Mobile Number List your “pin-point” enthusiasm, you may surely need to observe and place into play these 50 “best work on” showcasing methods.Here we go! 1. Utilize your items routinely. 2. Make an absolute responsibility to your program for at any rate one year. 3. Sell yourself first, at that point the items and the showcasing plan.
4. Invest 90% of your business energy with mechants, clients and possibilities. 5. Present our items and showcasing plan by nd by to at any rate one individual ay by day.
6. ell everybody what business you are in. Publicize.
7.Make “getting individuals” increasingly significant that item information. 8 Copy yourself by making merchants free of you.
9. Spur your gathering month to month by offering cash, tavel, acknowledgment and different compensations for explicit accomplishments.
10. Acclaim your wholesaler’s achievements.
11. Blend with top merchants and ask how they made it.
12. Be steady – just one out of each 20 individuals yo approach may quit fooling around about the business or be keen on your items.
13. Show others how its done. Recruit constantly, preparing and retailing.
14. Keep it basic: do things others can without much of a stretch copy and duplicate.
15. Stay in contact – convey by pamphlet, gatherings, weekfter week calls, postcards, voice message – pass on relevant data right away.
16. Lead straightforward, brief, sensational introductions.
17. Listen 80% of the time, talk 20%.
18. Fulfill all protests right away.
19. Focus onwhat you can accomplish for your wholesalers and clients, not on your own benefits.
20. Request referrals from your best clients.
21. Giv clients more than they anticipate. Everybody adores an unconditional present.
22. Create at any rate 30 retail as well as discount clients.
23. Give one-day conveyance administration.
24. Have faith in your items so muh that you know each individual you converse with is going to purchase from you.
25. Tell your clients the amount you value their business.
26. Try not to acknowledge “no” as a ast answer – approach each prospect at any rate 12 times each year with new data.
27. Send clients month to month limite time data. Don’t your overlook your clients and don’t let your clients overlook you!
28. Talk eagerly about your business and items.
29. Work on main concern extends that produce the best yields.
30. Manuacture your rundown of contacts every day while you fabricate your notoriety.
31. Approach previous top makers. They are consistently open.