How to add links from my URL list to different pages on my site in a row?

Hello guys, I need your advice and help.
For example:
I need to boost 3 pages on my site. Let it be:
https://site.com/category1
https://site.com/category2
https://site.com/category3
I have a list of 200 strong high DR websites, where it is possible to get backlinks.
My aim is to get 200 links from my list to https://site.com/category1, the same 200 links from my list to https://site.com/category2 and the same 200 links from my list to https://site.com/category3

I use these settings, but it doesn’t help….


Structuring convoluted list to the form useful in ListPlot

From an excel file, I have the following form of the (raw) data:

{{x1, y11, y12, y13, y14}, {x2, y21, y22, y23, y24}, ..., {xn, yn1, yn2, yn3, yn4}} 

I want to make a ListPlot by considering points {xi, yij} for each i and j. The points with same j are to be joined by a line segment. Then, I should be able to manipulate the above list. How can I do this?

How do you ‘do something’ to every element in a list except that one index? (C# Beginners Level Question) [closed]

I created a list of 40 buttons, each of these buttons have an ‘int counter’ that counts up incrementally to 5 whenever pressed.

If I hit button 1, the other button’s counter will reset and become 0, but the button I hit can now increase to 2, 3, 4, 5.

How would you loop the list in a way that doesn’t also reset the button being pressed?

Button itself is a class, and I have a ButtonManager that contains List< Button > Buttons

List archived posts by subcategory

I would like to override the default post archives, via category.

In some cases (not all), I have 2 level-categories, such as:

Parent Category: "Video"

  • Subcategory "Comedy"
  • Subcategory "Action"

But some other categories, are just single-level.

Currently, no matter which category you choose, you get a list of posts, no matter whether its a main- or sub- category.

What I would like to do, is when entering the category listing, there is a test of sub-categories exist, and if so, the posts should be lists as such:

Heading: Video

Comedy

  • post 1
  • post 2
  • post 3

Action

  • post 4
  • post 5
  • post 6

If however, there are no subcategories, than the default listing is displayed:

Heading: Books

  • post 7
  • post 8
  • post 9

How can this be done?

I have very basic PHP knowledge, and have a PHPCode script installed, but I’m not sure how to access the archive/category page.

If its relevant, I am using Avada (child) theme.

how to change list of some scalars into vectors?

I have a pair of equations f= {eq1,eq2} that are (x,y) dependent. I take derivative by (x) and (y) for each equation, for example,

 Grad[f, {x, y}] . {1, 1}]  

and multiply it with a Xlist. The functions are dependent on Xlist too say {{1,2,3},{2,2,4}} For some functions (say f1) my output is listed like this

 {{12},{2}}  {{12,3,4},{21,2,3}} 

The function f1 usually is

 f1={xy+x^2,xy+y^2 }   

form. For other functions like

 f2 ={x,y^2}  

or

 f3={x+4,y-2}  

the output is

{1,{21}} {1,{2,3,4}} 

for f1 and

 {3,6} 

for f2. It causing me problems for next calculations because the output format is required to be like {{},{},{}….} etc. Looks like derivative of functions such as f2 and f3 yield constant or scalar f2 = (scalar, vector) and f3 =(scalar,scalar). How do I make scalar stay as a vector? How do I turn list for example {1,{3,4,..} or {{3,2,2},3} into {{1},{3,4,..} or {{3,2,2},{3}}? I have tried a rule method but my approach did not seems to pan out correctly,

 code /. {a_,{b_}}->{{a},{b}} 

because output of size derivative vary with list of functions and Xlist.

Lists of labelled vectors, how to output a list of tuples which sum to zero

list = {{1, 1, 0}, {1, 0, 1}, {0, 1, 1}, {-1, 1, 0}, {1, -1, 0}, {-1, -1, 0}, {-1, 0, 1}, {1, 0,-1}, {-1, 0, -1}, {0, -1, 1}, {0, 1, -1}, {0, -1, -1}};

list2 = {{2, 0, 0}, {0, 2, 0}, {0, 0, 2}, {-2, 0, 0}, {0, -2, 0}, {0, 0, -2}}

@Ulrich Neumann gave the following algorithm which finds the all zero sums (duplication is allowed) where "a" vectors are selected from list and "b" vectors from list2.

slist = Tuples[list, {a}]; listb = Tuples[list2, {b}] Table[{li, Select[slist, Total[#] == -Total[li] &]}, {li, listb}]

For instance, when a=2, and b=1, one part of the result which the above code gives:{{{2, 0, 0}}, {{{-1, 1, 0}, {-1, -1, 0}}, {{-1, -1, 0}, {-1, 1, 0}}, {{-1, 0, 1}, {-1, 0, -1}}, {{-1, 0, -1}, {-1, 0, 1}}}}

My problem is listing the results .I want to assign letters to each vectors in the list and list2, let list = {a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12}; where a1={1, 1, 0}, a2={1, 0, 1}, a3={0, 1, 1}, a4={-1, 1, 0}, a5={1, -1, 0}, a6={-1, -1, 0},a7= {-1,0,1}, a8= {1,0,-1}, a9= {-1,0,-1}, a10={0,-1,1}, a11={0,1,-1}, a12={0,-1,-1},

and list2={b1, b2, b3, b4, b5, b6} where b1={2, 0, 0}, b2={0, 2, 0}, b3={0, 0, 2}, b4={-2, 0, 0}, b5={0, -2, 0}, b6={0, 0, -2}.

I want to have the results in the associated form. So for instance, reconsider the specific part of result: {{{2, 0, 0}}, {{{-1, 1, 0}, {-1, -1, 0}}, {{-1, -1, 0}, {-1, 1, 0}}, {{-1, 0, 1}, {-1, 0, -1}}, {{-1, 0, -1}, {-1, 0, 1}}}}. It needs to be in the form: {{b1}, {{a4, a6}, {a6, a4}, {a7, a9}, {a9, a7}}} and I want the whole output to be in terms of letters rather than explicit vectors. How can we manage this ?

How do I get a list of all tables in a mysql db, ordered by foreign key dependencies?

I want a list of tables, ordered by foreign key. So if table "Book" has a FK dependency on table "Author", Author would be listed first and Book second. I have no cyclic dependency loops but I do have a few self-join relationships (table has an FK dependency on itself). I would like a script to generate this list. (Or perhaps a recursive CTE in mysql 8?)

I can get the foreign key dependencies from: (mysql query)

select CONSTRAINT_NAME, TABLE_NAME, REFERENCED_TABLE_NAME from information_schema.referential_constraints where constraint_schema = 'DBName' order by TABLE_NAME; 

And the table-list from:

show full tables where table_type <> "VIEW"; 

Background: I would like to copy my mysql db-schema into an in-memory H2 database for testing. But H2 does not support full mysql syntax. In particular FOREIGN_KEY_CHECKS=0 is not supported and H2 SET REFERENTIAL_INTEGRITY FALSE only applies to insert/update-constraint-checks not table-creation. So my tables need to be created in the correct order, according to FK dependencies.

I can dump the schema with mysqldump. But mysqldump does not order the table creation by foreign keys. If table "Child" has a FK dependency on table "Parent", mysqldump appears to put the table-creation in alphabetical order so Child will be created before Parent even though it depends on Parent. It relies on disabling foreign key checks while all the tables are created.

So if I had a list of table names, in fk order, I could pass that to mysqldump to dump the schema.

Has WP 5.7.2 possibly changed the email process, specifically, does anyone know where to find a list of PHPMAILER_EXCEPTION_CODES?

Been using a Form plugin for several years (forms haven’t changed for some time) and up until recently these forms have been fully functional … specifically … they are supposed to send both a submission email and a confirmation email after each form is submitted … for some unknown reason, the confirmation emails have stopped working

Wondering if one of, or combination of, 4 recent system updates may be involved;

  • WP 5.7.2
  • Centos 7.9
  • PHP 7.4
  • VFB Pro 3.4.4

So far I have;

  • regressed PHP to 7.2 (no change)
  • did a file comparison of the Plugin Update which indicates all changes appear to be unrelated to email
  • added some "log to file" debug statements to wp/wp-includes/pluggable.php function wp_mail() which indicate the plugin’s confirmation Email Call is throwing an Exception Error at line 535 $ mail_error_data[‘phpmailer_exception_code’] = 1

Any thoughts as to what does this exception code might mean?

The confirmation email does have; To, Subject, From, and Body/Headers

The Plugin’s Submission Email works properly

Could the content of an email possibly be throwing this process?

function getcode() doesn’t reveal any meaning for this exception code

Frustratingly hard to fix something without knowing what is actually causing the issue

Are there any other methods of debugging these kinds of issues without brute force debug statements?

How to compare and subtract elements in nested list to generate a new list

I have list of lists like this one:
list={{1, 9, 4, 7, 2}, {1, 4, 7, 1, 8}, {0, 5, 7, 2, 9}}
where every nested list have 5 elements.

I want to compare the third, fourth and fifth elements of each nested list and do the subtraction: the largest number minus the smallest number. The result should create a new list.

In my example, it should work like this:
in the first nested list {1, 9, 4, 7, 2} the largest value between the third, fourth and fifth elements is 7 and the smallest 2, subtraction 7-2=5. So 5 will be the first element in the new list with results. I want to do it with every nested list in my list of list.
For my example, the result will be:
result={5,7,7}

The problem is that I don’t know how to do it. It’s not just comparing the elements between nested lists or extracting specific elements from the lists (because I want to compare and subtract them first, then get the result). Please help!