Postprocessing – Processes the raw image to match the lower resolution JPEG

I have some photos on which I have edited the image to my liking, but unfortunately only a version with low resolution (for Instagram) have saved. I'd like to have a higher resolution version for printing now. I have the original raw and I want to try to reproduce my previous image as accurately as possible. Is there a way to do this automatically?

The edits include cropping, possible perspective correction, exposure, shadows and highlights, color, etc.

I have access to the entire Adobe Suite, Gimp, Darktable, Photivo and I'm ready to test another software or even a simple script with Pyimage or something similar.

Part of me thinks that this is probably impossible, but then it should be just a bit complicated to map one on top of the other.

Any suggestions?

Equation Resolution – Why is FindRoot so slow for this problem?[M[x]]== 0

I'm trying to use Mathematica to find the numerical solution for an equation Det (M (x)) == 0, where M (x) is a matrix function of x defined below:

r = 10; (Omega) = E^((Pi) I/r); 
M(x_) = Table(
  D(Cos((Omega)^j x), {x, i}), {i, 0, r - 1}, {j, 0, r - 1}); 
G(x_) := Det(N(M(x))); M(x) // MatrixForm

I expect the solution for G (x) == 0 for large r up to a few hundred, but if I call the FindRoot function, it is already very slow for r = 10 (does not take longer than a few seconds)):

FindRoot(G(x) == 0, {x, (r + 1)/4 (Pi)})

But the representation of G (x) is extremely fast:

Plot(Norm(G(x)), {x, (r + 0.6)/4 (Pi), (r + 0.7)/4 (Pi)})

In fact, I tried and plotted it manually with the bisection method (each time the interval was reduced by a factor of two), which gave me a very accurate solution in just about a minute, much faster than FindRoot.

Why is FindRoot so slow in this case?

photos.app – IOS 13 Blurred low resolution photos in the gallery

Has anyone noticed that since upgrading to iOS 13, some photos have a low resolution and are blurry when viewed? On my phone it seems to be about 50%.

When I click on the Edit button, the images are clear again and very sharp.

Feels like it's a kind of optimization that's flawed.

They will not be saved to iCloud because I have an iPhone XS with 256 GB and this also happens offline.

I can not see any settings for it. Any ideas or am I alone with that?

Thank you in advance for any suggestions

Subnet Labs / ImpactVPS – Server shut down 19 hours, no resolution yet

I hate to do that, especially with a company I have been very happy with for the last 3 years. But what I'm experiencing right now is downright annoying.

One of my VPS failed yesterday at around 2 pm in the East. I tried rebooting, shutting down, logging in through the Novnc console, but I was out of luck with everything I tried. I issued a ticket at 14:41 and tried to get an answer. Finally, I received a message stating that they were working on it at 3:11 Eastern. At 5:39 East I answered her question and at 6:31 they asked me another question which I answered within 6 minutes. It is now almost 3 hours and 4 follow-up messages from me and I have not heard anything yet.

After 19 hours in this chaos, I do not know what's going on with the VPS, nor do I have a solution, leave an ETA alone. At least the lack of communication and follow-up is unacceptable

I'm done.

Equation Resolution – solve for coefficients to express the polynomial with another polynomial

If I have a polynomial, say $ p (x) = 6x ^ 3 – x ^ 2 + x $, and I want to express that with a sum of other polynomials, how can I do that in Mathematica? Specifically, I want to say that $$ p (x) = sum_ {i = 0} ^ 3 alpha_iL_i (x) $$ Where $ L_i (x) $ is the $ i ^ {th} $ Legendre polynomial (not very important, what exactly is the other polynomial).

I tried the following:

p = 6*x^3 - x^2 + x;
Solve(p == (C3*LegendreP(3, x) + C2*LegendreP(2, x) + 
  C1*LegendreP(1, x) + C0*LegendreP(0, x)), {C3, C2, C1, C0})

but there are

 {{C0 -> x - C1 x - x^2 + 6 x^3 - 1/2 C2 (-1 + 3 x^2) - 
    1/2 C3 (-3 x + 5 x^3)}}

as an output, if I know (for this example) that the Cs are real numbers.

Equation solution – Numerical resolution of non-linearly coupled ODEs

I'm having trouble with my code in Mathematica. I have introduced the set of coupled nonlinear ODES. This is the resolution part:

(*Initial parameters*)
A = 0.5;
a = 0.9;
(CapitalOmega) = 0.24;

(*Initial conditions*)
(Upsilon)0 = 0.22;
(Alpha)0 = Pi;
(Psi)0 = Pi/2;
r0 = 20;
(Theta)0 = Pi/8;
(CurlyPhi)0 = 0;

Needs("DifferentialEquations`NDSolveProblems`"); 
Needs("DifferentialEquations`NDSolveUtilities`");
(*Systems to integrate*)

system = {x1'(t) == 
    Eq1(A, a, (CapitalOmega), x1(t), x2(t), x3(t), x4(t), x5(t)),
   x2'(t) == 
    Eq2(A, a, (CapitalOmega), x1(t), x2(t), x3(t), x4(t), x5(t)),
   x3'(t) == 
    Eq3(A, a, (CapitalOmega), x1(t), x2(t), x3(t), x4(t), x5(t)),
   x4'(t) == 
    Eq4(A, a, (CapitalOmega), x1(t), x2(t), x3(t), x4(t), x5(t)),
   x5'(t) == 
    Eq5(A, a, (CapitalOmega), x1(t), x2(t), x3(t), x4(t), x5(t)),
   x6'(t) == 
    Eq6(A, a, (CapitalOmega), x1(t), x2(t), x3(t), x4(t), x5(t)), 
   x1(0) == (Upsilon)0, x2(0) == (Alpha)0, x3(0) == (Psi)0, 
   x4(0) == r0, x5(0) == (Theta)0, x6(0) == (CurlyPhi)0};

sol = NDSolve(system, {x1, x2, x3, x4, x5, x6}, {t, 0, 14000}, 
   Method -> {"StiffnessSwitching", 
     Method -> {"ExplicitRungeKutta", Automatic}}, AccuracyGoal -> 22,
    MaxSteps -> Infinity, PrecisionGoal -> 15, WorkingPrecision -> 22);

ParametricPlot3D(
 Evaluate({x4(t)*Sin(x5(t))*Cos(x6(t)), x4(t)*Sin(x5(t))*Sin(x6(t)), 
    x4(t)*Cos(x5(t))} /. sol), {t, 0, 14000}, PlotPoints -> 10000, 
 ColorFunction -> {Red}, ImageSize -> 500)

I get the following error messages

"The accuracy of the differential equation ({<<1>>}) is smaller than
Working accuracy (22.)"
At t == 140.91450584595810589848638366914914657367
22., increment is
effectively zero; Suspicion of singularity or stiff system

Anyone could suggest me how to improve my code? Thank you in advance.

Subnet Labs / ImpactVPS – Server shut down 19 hours, no resolution yet

I hate to do that, especially with a company I have been very happy with for the last 3 years. But what I'm experiencing right now is downright annoying.

One of my VPS failed yesterday at around 2 pm in the East. I tried rebooting, shutting down, logging in through the Novnc console, but I was out of luck with everything I tried. I issued a ticket at 14:41 and tried to get an answer. Finally, I received a message stating that they were working on it at 3:11 Eastern. At 5:39 East I answered her question and at 6:31 they asked me another question which I answered within 6 minutes. It is now almost 3 hours and 4 follow-up messages from me and I have not heard anything yet.

After 19 hours in this chaos, I do not know what's going on with the VPS, nor do I have a solution, leave an ETA alone. At least the lack of communication and follow-up is unacceptable

I'm done.

python – # A program that lets you see how red, blue, and purple appear in the resolution for fun

I'm doing a bit of analogue and digital art. This time I did a color test digital. To work on my programmability so that it is divisible, I ask for help to get a code review.

What is the readability?
Is it easy to follow the train of thought?
Suggestions?

Greetings Johan

#A program for fun to see how red, blue and purple appears at resolution 

from math import *
from graphics import *

def hole(win, centerx, centery, radius): #draws an inverted sphere
    for circle in range(radius, 0, -1):
        c = Circle(Point(centerx, centery), circle)
        c.setWidth(0)
        coloratangle = int(sin(circle/radius*pi/2)*255) #max resolution from black to white is 255 steps
        c.setFill(color_rgb(coloratangle * (circle % 2), 0, coloratangle * ((circle + 1) % 2))) # Modulus instead of Boolean? Modulus in c.setFill or in another line?
        c.draw(win)

windowheight = 1350
windowwidth = 730
win = GraphWin("My Circle", windowheight, windowwidth)
win.setBackground(color_rgb(255, 100, 100))

centerx = int(windowheight / 2)
centery = int(windowwidth / 2) #intetger
radius = int(sqrt(centerx**2 + centery**2)) #pythagoras

hole(win, centerx, centery, radius)

win.getMouse() # Pause to view result
win.close()    # Close window when done
```

How can the display resolution be simulated realistically when testing the responsive web UI?

If you want to test different screen sizes and features, I recommend that you use Chrome Dev Tools' device mode, which I think you comment on in the question. You can set up your own devices or simply play with the responsive device.

Nothing is as close as testing in the real device, For example, iOS Safari has an error with viewport units that is not replicated with DevTools. To test iOS with higher fidelity, I use the Xcode Simulator, which reproduces the bug.


Other resources:

Material Design – Resizer

Equation Resolution – How can I find the minimum and maximum output of a function and specify the valid ranges and steps for each variable?

I'm a software developer and it's been way too long since last time I had to calculate so complicated. I forgot a lot of the right terminology, which made it difficult to find answers. I apologize if this question has ever been asked and answered.

I have a function with a shipload of inputs. These inputs all have their own valid input domain (I think that's the right word) and their own step size (steps from 100 instead of 1). They are all inputs to a function as well, and I'm trying to calculate the maximum and minimum output for all possible combinations of inputs. What combination of functions do I have to use to achieve this?