## Passing list into another list

Suppose I have a zero matrix Amat and a list of values ltest that contains the values of the matrix Amat for the some of its diagonal elements:

L = 10000; Amat = 0. IdentityMatrix[L]; ltest = {{-0.70710, 1329}, {-0.25, 5607}, {-0.3535, 1261}, {-0.25, 4393}, {-0.5, 4358}, {-0.3511, 1009}, {-1., 3815}, {-0.25, 3784}, {-0.133, 3667}, {-0.88, 909}}; 

Now in order to pass the second column of ltest to Amat I can do:

For[i = 1, i <= Length[ltest], i++, Amat[[ltest[[All, 2]][[i]], ltest[[All, 2]][[i]]]] = ltest[[All, 1]][[i]]] 

Is there a shorter way without using For?

## Issues with redirecting domain name to another Apache with WordPress

I am currently running into an issue where if someone types in ‘myolddomain.com’, which is redirected to mynewdomain.com, into Google it will bring up the error message about ‘Attackers trying to steal information’. I do understand the concept that you cannot go from HTTPS to HTTPS without having the SSL certificate match the domain that gets redirected, but I was wondering if there was a way to force browsers to view the old domain as HTTP only and not attempt to load it as HTTPS. I know there is a way I just don’t know how to do it in Apache because I have an IIS site that does this and has no issues. I tried several different rewrite rules and disabling WordPress SSL plugins (this was an inherited site) and still have nothing. If more information is needed please let me know. I appreciate your time.

## Can my dnd 5e character have another pc as his familai

I have a player character who is a genie pact of blade warlock, he may get married to another pc, his vessel is a ring,i want the other pc to wear his vessel as their ring, and become his familiar, my idea is to limit the attack I can give my familiar to a single melee attack This would actually limit me more than anything, and in a party, 5 people and a familiar, is the same strength as 5 people, one of whom is a familiar Thoughts?

## How can I direct sum matrices into the middle of one another another?

I would like to execute the mathematical operation of the direct sum of matrices in the case where the matrices are not appended one after the other along the diagonal, but instead mixed among one another. This must be generalizable to any permutation of mixing indices along the diagonal.

For example, say we have matrix A, B and C $$A=$$\begin{bmatrix} cos (t) & sin(t) \ -sin(t) & cos(t) \end{bmatrix}$$$$

$$B=$$\begin{bmatrix} 1 & 0 \ 0 & 1 \end{bmatrix}$$$$

$$C=$$\begin{bmatrix} cos (u) & sin(u) \ -sin(u) & cos(u) \end{bmatrix}$$$$

$$A ? B ? C=$$\begin{bmatrix} cos (t) & sin(t) & 0 & 0 & 0 & 0\ -sin(t) & cos(t) & 0 & 0 & 0 & 0\ 0 & 0 & 1 & 0 & 0 & 0\ 0 & 0 & 0 & cos(u) & 0 & sin(u)\ 0 & 0 & 0 & 0 & 1 & 0\ 0 & 0 & 0 & -sin(u) & 0 & cos(u) \end{bmatrix}$$$$

How would this be done in a generalizable way in Mathematica? One could use a permutation matrix, $$P=$$\begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0\ 0 & 1 & 0 & 0 & 0 & 0\ 0 & 0 & 1 & 0 & 0 & 0\ 0 & 0 & 0 & 0 & 1 & 0\ 0 & 0 & 0 & 1 & 0 & 0\ 0 & 0 & 0 & 0 & 0 & 1 \end{bmatrix}$$$$ where, $$A?B?C=P[A⊕B⊕C]P^T$$, but how could I create such a matrix P in mathematica knowing only what the mapping is? In this case, the index mapping being: (1,2,3,4,5,6)->(1,2,3,5,4,6)

## How can I find the name of a function and replace with another name in a plugin?

I would like to replace a button name "CV Manager" with "Upload Resume". The button is part of a list of menu buttons in a user dashboard. It function is to direct candidates to upload their resumes and I would like the button to say just that. Can anyone please tell me where in the plugin database I can find that button and replace it by using the "plugin editor" in wordpress? Thank you

## User can ban(hide content(posts,comments)) another user.WordPress problem

I have a project with applications for android and ios, but it takes data from a site that is on WordPress. And so, they don’t want to accept my application on IOS because there is no possibility "User can ban(hide content(posts,comments)) another user". I tried to google, I couldn’t find anything like that. No plugins, no scripts. Perhaps someone has done something similar?

## Can Goodberries heal a Life cleric when consumed by another?

Are Goodberries affected by the Life domain class features? asked whether or not the Life domain cleric’s Disciple of Life feature improved the healing of each berry.

My question is: does the Life cleric’s 6th-level feature, Blessed Healer, heal the cleric every time anyone else eats a goodberry?

Beginning at 6th level, the healing spells you cast on others heal you as well. When you cast a spell of 1st level or higher that restores hit points to a creature other than you, you regain hit points equal to 2 + the spell’s level.

I’m leaning towards no, because unlike the Disciple of Life feature, Blessed Healer specifically says that you regain hit points when you cast a spell that restores hit points. Since the healing from goodberry takes place after you cast the spell, it makes sense that it doesn’t trigger Blessed Healer.

## Is there another +1 Charisma feat for a half-elf warlock who doesn’t want to be a “face”?

My half-elf warlock has 16 Charisma, and I’m considering taking the Elven Accuracy feat (XGtE, p. 74), which would boost his Charisma to 17. Since I definitely want 20 Charisma eventually, a +2 Cha ASI and a second +1 Cha feat would get me there.

However, every other feat I can find that offers +1 to Charisma falls into one of three categories:

• Specific to some other race (e.g. Dragon Fear for dragonborn, from XGtE p. 74)

• Redundant for a warlock (i.e. Resilient choosing Charisma, from PHB p. 168)

• Related to being a “face” character (e.g. Actor, from PHB p. 165)

Since I am a half-elf warlock, and I’m not really looking to be a face character, these options seem to run counter to the sort of character I’m trying to build. Are there any other options? Charisma for my warlock is all about “spirit” and magic.

Any Wizards of the Coast material, including Unearthed Arcana, might be considered here.

## What is the best way to check if a moving 2D object will collide with another inmobile one before reaching it’s destiny?

Provided that both objects have rectangular hitboxes, x and y positions and height/width. No engine is being used.