Unity – Using content size adjustment to scale parent image with child text

I want to resize my parent image with my child text. To do this, I add a content size adjuster to the parent and child, as well as a horizontal layout group to the parent. It works, but I get this warning on the child:

enter description of image here

But, if I try to do as the warning says and remove the size editor from my text content, the parent stops scaling with the text. Is this a bug or is something missing?

Also, is there a way to automatically add line breaks after X number of characters?

post-processing – Do I lose information every time I add an adjustment layer to an 8-bit image in Photoshop?

There may be less color in the result, yes. In a pixel, each color channel can only take one of the 256 values ​​(2⁸). Each adjustment transforms these 256 values ​​into 256 other values. But there is a constraint: for any pair of two input values, the higher of the two must remain the higher (otherwise you get an effect called solarization). If you use curves, it means that your curve cannot go down from left to right.

Now consider a value somewhere in the middle, for example 128. Your adjustment moves it to 140. The 128 values ​​less than 128 are mapped to 128 new positions between 0 and 140 (of course, this means that some values ​​less than 140 don't will not be And the remaining 128 values ​​(128 and higher) are now mapped to 116 values, so you started with 256 values, and you now have 128 + 116 = 244 values.

This can lead to what is called a hair-shaped histogram:

enter description of image here

The above histogram is a black-white linear gradient, in which, using curves, I moved 128 to 140. The gaps to the left are the 12 values ​​that are left blank (128 to 140 ) while the teeth on the right are result values ​​which correspond to two input values ​​(12 of them, 128 in 116).

Each of these adjustments eats a little color. It is not too visible at first because you have three color channels and the missing values ​​do not apply to all three channels at the same time (sometimes you can even get more colors …), but in flat areas with uniform colors, you will get visible bands.

rest api – Adjustment of invoice increment ID for API in Magento 2

I would like to change the increment_id for invoices. I tried this by running the following query:

ALTER TABLE sequence_invoice_1 AUTO_INCREMENT = 504;

This works for the invoice ID, but it doesn't work when using the rest API, because the API uses the entity_id column of sales_order table. For an accounting implementation, I have to change the entity_id greater than 500 via the rest API.

How to accomplish to change the value for the next entity_id?

dnd 3.5e – Are there any negative level adjustment breeds or patterns?

The closest thing I know to what you are asking for is Kobolds. This web enhancement allows them to cast spells as if their Sorcerer level is one. So level 8 kobold can have most of the class abilities of level 9 kobold, for example.

Of course, it's complicated, limited to a class-race combination, requires a feat and formally, they are always +0. Still, I have never found anything closer to real -1, and I have used it for character optimization when I wanted -1 LA with good results.

mathematical optimization – simultaneous adjustment of peaks and background

I'm not sure this is the right way to proceed, but I have a question related to another open question.

In this article, I am looking to analyze some quantum dot UV-Vis absorbance spectra (example data). I am a synthetic chemist and a bit of a mathematician, so I am still trying to understand this problem. In seeking different solutions to this problem, I came across a plot from this document that I am almost certain I can not publish for copyright reasons. I have therefore made an approximation in Mathematica:
Example of an alignment plot

Clearly, I'm using the @Silvia code in this article to generate this graph, which is not a coincidence.

As I understand this code

Clear(model)
model(data_, n_) := 
 Module({dataconfig, modelfunc, objfunc, fitvar, fitres},
  dataconfig = {A(#), μ(#), σ(#)} & /@ Range(n);
  modelfunc = peakfunc(##, fitvar) & @@@ dataconfig // Total;
  objfunc = 
   Total((data((All, 2)) - (modelfunc /. fitvar -> # &) /@ 
       data((All, 1)))^2);
  FindMinimum(objfunc, Flatten@dataconfig)
  )

The model assumes all the same peak functions, then carries out least squares minimization.

I would like to modify this code to include a background function. I've tried something similar using FindFit

bgfunc = a + bx + c x Log(x) + d Log(e + x)
modelfunction = 
 a + b x + c x Log(x) + d Log(e + x) + f^2 Exp((x - g)^2/h^2) + 
  i^2 Exp((x - j)^2/k^2) + l^2 Exp((x - m)^2/n^2)
FindFit(data,modelfunction,{a,b,c,d,e,f,g,h,i,j,k,l,m,n},x)

It does not work, of course, but I do not know why.

Following this, I tried to change the code of @ Silvia, but without success. My naive assumption was that I could just increase the number of terms in peakfunc like this:

peakfunc(A_, mu, sigma, g_, h_, x_) = 
 A^2 E^(-((x - mu)^2/(2 sigma^2))) + g*(x - h)^2

I've used this modified peakfunc to generate the data shown above, with the following dataconfig:

dataconfig = {{.7, -12, 1, 0, 0}, {2.2, 0, 5, 0, 0}, {1, 9, 2, 0, 
    0}, {0, 1, 1, 0.01, 20}};

However, the modified adjustment function does not return any sensible coefficients with this modified fit function.

My next approach was to modify the adjustment function to include my background function:

Clear(model)
model(data_, n_) := 
 Module({dataconfig, modelfunc, objfunc, fitvar, fitres,bgfunc},
  bgfunc = g*(x-h)^2;
  dataconfig = {A(#), (Mu)(#), (Sigma)(#)} & /@ Range(n);
  modelfunc = peakfunc(##, fitvar) & @@@ dataconfig // Total;
  AppendTo(modelfunc, bgfunc);
  AppendTo(dataconfig, {g(1),h(1)});
  objfunc = 
   Total((data((All, 2)) - (modelfunc /. fitvar -> # &) /@ 
        data((All, 1)))^2);
  FindMinimum(objfunc, Flatten@dataconfig))

I know it's a particularly awkward can, and of course, it does not work.

How could one approach the addition of a predefined background function to this code? I understand that the initial goal of the code was to find the minimum number of Gaussians to adapt to a dataset. I think my approach should work unless this problem is unsolvable.

tl; dr

  1. Is it possible to simultaneously adjust the peaks and the background? Suppose that the number of peaks is small and that, for the moment, it can be entered manually, and that the shape of the background is either:

$ a (x + b) ^ 2 + cx + d $

or

$ a + bx + cLog (x) + dLog (x + e) ​​$

  1. If possible, what is the best way to implement it? Am I on the right track trying to edit this code by @ Silvia?
  2. As a supplementary question, how to analyze this expression?
modelfunc = peakfunc(##, fitvar) & @@@ dataconfig // Total

In particular, what does

&@@@

mean?

Should this be interpreted as:

&@ + @@

or

& + @@@

?

Thank you

fitting – How to weight an adjustment in Mathematica with non Gaussian noise

When adjusting a function to some data, it is possible to weight the adjustment in

    NonlinearModelFit(
                       Data,
                       {Model(a,b,c,x), Constraints},
                       {{a, initA},{b,initB},{c, initC}}, x, 
                       Weights->1/sigma^2,
                       VarianceEstimatorFunction->(1&)
                     )

or sigma are the uncertainties in the data that we measured, or the weighting factor you want to choose. As I understand it, this is only true when the data is Gaussian (normally distributed).

My question is: if I know my noise is non-Gaussian, and if I know the noise distribution, how can I correctly weight the data in Mathematica? Is it a simple case of generating error bars reflecting the distribution of noise? Should I inform Mathematica of the distribution?

ios – Ignore the automatic adjustment of the brightness of the iPhone?

Apple seems to have completely removed the automatic brightness switch in recent iOS versions – the only "automatic" settings now include Light / Dark and Night Shift.

It does not bother me that Night Shift changes the white point of my screen as the night falls, but in the light of the normal day, I object with all my heart to the constant decision of the brightness backlighting.

I read my book, the ambient light seems a little weak, so I quickly change the brightness …. as I read, I can see that the system has just replaced me and lowered it again.
So I increase it … the system lowers it. Rinse and repeat ad nauseum.

I really think it's something that I should be responsible for.

Does anyone know the magic dance necessary to prevent it from doing this?

enter the description of the image here

Image of the settings just in case I miss something really obvious.

Windows "start cmd" drives me crazy (color adjustment)

I looked up and down the answer to this question, to no avail.
I am on Windows 10.

I have a batch script to launch a bunch of command windows using "start cmd".
When I do it, it does not take the color of the text I've defined.
I know how much it depends on the shortcut, and I tried in every possible way.
using default properties and defaults, without success.

It seems like I can put most properties to my taste (font, layout) but
not the color of the text.

If I open the window from the Start menu (or from the Run command), I receive my text in white.
But if I've used "start cmd", it uses different properties (which I've also tried to define)
and the color of the text is a teal / blue color.

However: when I look at the properties of this window and click on the color of the text,
the white box on the far right is highlighted and when I click on it, it indicates
(255,255,255) – but that's not what he's using !!

How can I get it to do what I want? (without using third-party applications, if possible)

Below, a screenshot showing this.

Tables of responsiveness: adjustment of the number of lines to adapt to the real estate available

I design a screen with tabular data and I try to explain to the developers what is required. First of all, I want to make sure that my design is achievable.

My goal is to …

  1. Have tabular data on the screen, including filters and pagination.
  2. The filters should be at the top and near the header line
  3. The header line must always be visible
  4. The paging control should always be visible near the last line displayed.
  5. The height of the line is fixed at 36px

So, for responsiveness, this leaves only the number of rows displayed as a variable. If it is possible to display only three lines while keeping all the mandatory commands visible, only display three. If the same thing is rendered on a larger screen and there is room for 25 lines, display 25. The user must still be able to expect that mandatory checks can be found at approximately the same location, regardless of the size of the real estate.

So, do you have any examples that I can send to the development team?

Thank you

film – Nikon N2000 and adjustment of the aperture

I started using a Nikon N2000 and I inserted a 50mm nikkor 1: 1.8G (https://www.adorama.com/images/Large/nk5018gu.jpg)

Since there is no setting of aperture (which can range from f1.8 to f.16), how can I decide it (or, at least, knowing what was selected by the camera)? What does the camera do?