Admin > Customers > All Customers > Edit Customer: > left hand tab "Account Information"

How can I populate this field so it’s filled in when a customer creates an account?

enter image description here

the name is customer[account_number]

I have a field above which is a duplicate but we call it something different and it populates correctly.

The name of that input is name="customer[parent_customer_id]"

Even know it’s redundant I want both fields to populate. What file and where should i be editing to populate customer[account_number] in it’s respective field.

unity – Why does Animator component prevent the player from facing left?

I’m making a 2D platformer with Unity. A few days ago, I was testing the game; the player could face right and left based on its moving direction and animations were playing correctly. I exited playmode because I had to assign the player position into a slot in inspector for the checkpoints. After assigning that, I entered the playmode again and surprisingly, I encountered a strange problem. The animations were working but the player was not able to face left when it was moving to the left side. I still have this problem. This is very strange to me because I didn’t change anything neither from the code nor the inspector. So I believe this is a random Unity bug. After testing the game many times, I found out these:

  1. If I disable Animator component, the player can flip again but obviously the animations won’t play.
  2. I can have both Animator and flipping working at the same time only when I check or uncheck root motion in playmode. But when I exit, the problem returns. So the previous unchecked or checked root motion will not work in the next playtest, so I can just check or uncheck it while the game is playing; otherwise it won’t work.

These are the reasons why I think the Animator component prevents the player from flipping but I have no idea why this is happening because this component has nothing to do with the facing code. Thanks in advance.

This is the code I use for flipping the protagonist:

bool isFacingLeft;

void Update()
        //Move the player.
        //Target velocity is defined in another script and is not important in this context.
        targetVelocity = new Vector2(Input.GetAxis("Horizontal") * maxSpeed, 0);
       //Flip the player's localScale.x if the move speed is greater than .01 or less than -.01.
       if (isFacingLeft == true)
          transform.localScale = new Vector2(Mathf.Abs(transform.localScale.x) * -1, transform.localScale.y);
          transform.localScale = new Vector2(Mathf.Abs(transform.localScale.x), transform.localScale.y);

       if (targetVelocity !=
          isFacingLeft = targetVelocity.x < 0 ? true : false;

sql – datos no esperados en consulta a mysql LEFT JOIN

Para ver el comportamiento de esta consulta puedes quitar los agregados y hacer un Select *. Verás que aparecen 6 filas, duplicando una venta. Esto es lo que va a sumar al realizar el SUM.

Para evitarlo puedes hacer los cálculos por separado agrupándolos por el mismo concepto: venta_id:

select SUM( as total, SUM(b.monto) as monto
   Select id, SUM(precio) as total
   from ventas
   group by id
) a
left join (
   Select venta_id, SUM(monto) as monto
   from pagos
   group by venta_id
) b on = b.venta_id

computer vision – What can help more with matching the features between the left and right images?

I am trying to understand ways that can help with matching the features between the left and right images. I know there are typically a couple of constraints that cause problems for similarity constraints such as occlusion, repetitions (with similar elements), textureless surfaces, Non-Lambertian Surface and etc.

Would the Wide stereo baseline potentially help with this issue? I know the wider the stereo baseline, the more possibility of occlusions occurring, so it does not seem viable. Or would having the appearance of many textures in the image help more with this for better matching?

mysql – Multiple left joins with common fields are overwritten

transactions t

transaction_type transaction_name
sale one
sale two

sales s

name amount
one 10.0
two 5.0

purchases p


transaction_type transaction_name amount
sale one 10.0
sale two 5.0


select t.transaction_type, t.transaction_name, s.amount, p.amount
from transactions t
left join sales s on t.transaction_type='sale' and
left join purchases p on t.transaction_type='purchase' and


transaction_type transaction_name amount
sale one null
sale two null

I understand that the outer join of the purchases is overwriting the amounts from the sales because of the common field, but what is the best approach in this case?

Note that there will be more tables to join like this. This is mysql in case it makes a difference, the query has been paraphrased and there is an orm wrapper.

I know I can do it with separate queries, inner joins and unions, is that best? I was hoping to do it in one query.


18.04 – What is the best LTS ubuntu version to upgrade to, when the presently installed one has only 2 months left?

I am running Ubuntu 16.04, which I upgraded originally from Ubuntu 14.04.

Presently (February 2021), Ubuntu 16.04 will run out of support in less than two months.

I could now upgrade to 18.04 or 20.04.

  • Upgrading to 20.04 will allow me to have no upgrade hassle for the next 4 years.
  • If I upgrade to 20.04, I will have a state of the art system where I do not have to add ppas too early, when I need a newer functionality (which in general could be a security issue, if I use the wrong ppa by chance).
  • Upgrading to 18.04 should deliver to me less hassle in the daily business, because all the software that I use (apart from Ubuntu directly), had already two additional years to adapt to everything that Ubuntu 18.04 has as a standard (higher python version, higher R version, … just to name some).
  • In general, upgrading one aspect of the system by the use of ppas is possible, downgrading makes more difficulties.

Which is the best strategy to follow – or do I miss an aspect or weight some non-canonically?

optimization – Prove that there exists at least a form $gleft ( a, b, c right )pm fleft ( a, b, c right )left ( a- b right )left ( b- c right )$ of $H$

Given a non-negative cyclic polynomial $H$ with the form $mleft ( a, b, c right )left ( c- 1 right )left ( a- 1 right )+ nleft ( a, b, c right )$ so that
$$mleft ( a, b, c right ), nleft ( a, b, c right )geq 0$$
Prove that there exists at least a form $gleft ( a, b, c right )pm fleft ( a, b, c right )left ( a- b right )left ( b- c right )$ of $H$ so that
$$gleft ( a, b, c right ), fleft ( a, b, c right )geq 0$$

Remark. The inverse problem is not true, e.g for_ A problem related to minimizing the multiplication signs
$$left ( c- a right )^{2}- left ( a- b right )left ( b- c right )= frac{1}{4}left ( 2c+ 2a- b right )^{2}+ frac{3}{4}b^{2}- 3cageq 0$$
There only exists $constant= -3< 0,$ in the problem we see $a, b, cequiv a- 1, b- 1, c- 1$ that makes no difference..

If we can’t come to a general solution, I will give the the best form with least multiplication signs, hope the give the form like the problem as follow :
$$left ( abc+ a+ b+ c right )^{3}- 8abcleft ( 1+ a right )left ( 1+ b right )left ( 1+ c right )geq 0$$
One form given_Given three positive numbers $a,,b,,c$ . Prove that $(!abc+ a+ b+ c!)^{3}geqq 8,abc(!1+ a!)(!1+ b!)(!1+ c!)$ .

configurable product – “Only 0 Left” message has suddenly appeared after upgraded to 2.4.2

As wrote in the title, after I’ve upgraded from Magento 2.4.1 to 2.4.2 the message “Only 0 Left” has suddenly appeared in the product page (configurable product).

I checked in Stores->Configuration->Catalog->Inventory->Stock Options->Only X left Threshold and it’s set to 0. I tried to set to -1 but nothing’s changed.

enter image description here

Any solutions?