Centos Web Panel Backup issue


I am using a server with two disks (64 GB SSD and 1 TB HDD). I have installed Centos web panel in it. I have set up the backups to 1 TB HDD but while generating the daily backups centos panel automatically creates a temporary folder /home/tmp_bak/ and only transfers the backup files to second disk (/backup) after completing the backup generation process. It is making my / partition full and I need to manually move the backups to resolve the issue.

Is there any way to resolve this? I have gone through some forums but can’t find any fix.

Realtek RTL8821AE wifi issue on Ubuntu 20.04

I am getting this weird issue on my laptop:

  1. When I’m very close to the wifi-router I get excellent speeds. Moving even 10 feet away from the router brings my download speed down from 100 MBps on speedtest.net to 88kbps and a ping latency from 19ms to 1077ms.

  2. What’s even weirder is, that, when I use the internet over ubuntu on that laptop, it starts to interfere with the wifi for my other laptop (a mid-2012 unibody MacbookPro) to the point that my macbook pro loses internet connectivity. I also tried turning off my macbook and tested the internet connection over ubuntu, that does not help either.

  3. I tried using 3rd party drivers from the Software & Updates window, to no avail.

  4. I know this is not a hardware issue since I have the laptop on dual-boot with windows and I get more or less the same internet speeds near and equally far away from the router.

Any suggestions?

React Native Redux issue – Stack Overflow

I am having an issue with adding favourite functionality for e-commerce app. Getting error of undefined.enter image description here

    case TOGGLE_FAVOURITE:
 
        const exitsIndex = state.favouriteProducts.findIndex((meal) => meal.id === action.productId);
        if(exitsIndex >= 0) {
            return { ...state, favouriteProducts: state.favouriteProducts.filter((meal) => meal.id !== action.productId) }
        } else {
            const favMeal = state.availableProducts.find((meal) => meal.id === action.productId);
            return { ...state, favouriteProducts: state.favouriteProducts.concat(favMeal) };
        }
 
 
This is my action:
export const toggleFavourite = id => {
    return { type: TOGGLE_FAVOURITE, productId: id };
};
 
And this is my call function: 
 const toggleFavouriteHandler = useCallback(() => {
        dispatch(toggleFavourite(productId));
      }, (dispatch, productId));

triangles – Trigonometry issue – Mathematics Stack Exchange

Hi I’m sorry i’m coming to you because i’m really bad at maths.
But i’m trying to create a visualisation for my project…
My issue is that I want to make the 4 big circles grow proportionally when the green circle radius grow.

small green circle radius = 35

Bottow circle has radius = 135 , x = 0 , y = -100
Top circle has radius = 135 , x = 0 , y = 100

Left circle has radius = 135 , x = -100 , y = 0
Right circle has radius = 135 , x = 100 , y = 0

I would be very greatful of your help

IMAGE

Restrict CA to issue certficates for one domain or to be able to sign just one server certificate

I have a server and I want my iPhone to connect to it securely. However, I cannot just install the self-signed server certificate on my iPhone. When I install the profile (that’s what they call the certificate), it says “Not verified”.

Normally, you would go to CA Trust settings and enable full trust for the certificate. BUT I deliberately made the certificate with critical,CA:false constraint. That’s the reason it does not show in the CA Trust settings.

Why did I do it — I just need to install the single certificate and I don’t want to totally compromise my iPhone security, if my CA credentials got stolen.

Do this have a solution? iOS probably requires a CA to trust a certificate, but I don’t want a possibility to create certificates at all (beside the one), or at least for another domains.


One potential “solution” might be to create the CA, sign the server certificate and then delete the CA key, as it would not be needed and would live for a shorter time (lower chance to get stolen).

However, people except me wouldn’t be stoked to install it. (I don’t want to buy a certificate as its a home project and I don’t even have a domain name, just the IP address.)

The certificate complies with apple’s current requirements for server certificates. (https://support.apple.com/en-us/HT210176)

302 redirection issue

My website was initially http later I have updated it to https.

some of the Urls when hit as http://www.testsite.com/testfile.php?id=3456 it will redirected to the home page of the site with 302.

Even when the https version of that url is exist.

All other Urls are working fine.

troubleshooting – Is there a focusing issue with the Sigma 17-50mm f/2.8 on a Canon 70D?

The first sample image in the question is focused well in front of the central pillar. The second is focused well behind the flowers.

You have told us that you are using single point AF but you haven’t told us which AF mode you are using: One Shot, AI Servo, or AI Focus? If you’re trying to focus and recompose using AI Servo the camera will refocus when you move the camera to point at a different spot. If you use AI Focus the camera will initially hold focus as it would in One Shot mode, but if you recompose and hold the camera too long in the new position the camera will sense that your selected AF point is no longer in focus and will switch over to AI Servo.

There appear to be other issues at work that might also be contributing to your results:

Diffraction The 70D is a Canon APS-C camera with 4.1µm pixel pitch. The Diffraction Limited Aperture (DLA) of the 70D is f/6.6. This is the point at which the effects of diffraction begin when viewed at the pixel level. As apertures are narrowed beyond the DLA the results get more and more noticeable at normal viewing sizes. The best way to avoid this is to shoot at around f/8 or wider and at f/6.3 or wider if possible.

Camera movement Not everyone can hold a camera steady enough to use the 1/focal length rule-of-thumb, even when viewing at the standard 8×10 sizes for which it applies. You may get useable results for viewing at smaller sizes, but nowhere near the equivalent viewing size of looking at part of an image at 100% on your monitor. If you have an HD (1920×1080 pixels) monitor that measures 23″ diagonally you are viewing images at 96 ppi. That means an 18MP image viewed at 100% is being magnified at the equivalent of 54×36 inches! That’s 5X the magnification of the standard 8×10 print.

The optical limits of your lens I’d like to know where you read excellent reviews of this lens. I’ve never seen any critical reviews from reputable reviewers written about it that impressed me very much. Before you can blame AF you need to be sure that something else isn’t causing your images to be blurred. To do that you need to eliminate as many of the other possible causes as you can.

  • Mount your camera on a stable tripod, turn off optical image stabilisation, and use a cable release or the self timer to release the shutter. This will help eliminate camera movement as the source of your problem.
  • Shoot under bright enough constant lighting that your shutter speed at ISO 100 can be 1/100 second or faster. Use the fullest spectrum lights available to you. This will further help to eliminate camera movement including vibrations caused by the movement of the camera’s mirror. Properly exposing using low ISO will also help eliminate poor image quality caused by a low signal-to-noise ratio and the resulting noise reduction.
  • Use a flat target that is lined up parallel with your camera’s image sensor and perpendicular to the optical axis of the lens. An easy way to do this is to aim your camera at a flat, stable mirror. Center the viewfinder on the center of reflection of the lens in the mirror. Then tape your focus target onto the mirror being careful not to move the mirror.
  • Use careful manual focus with magnified Live View. Take several samples while refocusing manually between each sample.
  • Repeat the test shots using One Shot AF mode with the single center focus point selected. Move the lens to infinity or minimum focus between each test shot. Use a half shutter press with your cable release to allow the AF to confirm focus before taking the photo.
  • Compare the best of the manually focused shots to the best of the AF shots.

If there is a significant difference then you have an AF issue. If there is not a significant difference then your problem lies elsewhere.

Comment from the OP:

I still doubt that there is a focus issue. I have been using Single shot AF in almost all pictures. And shooting at 4-5 times of 1/focal length at ISO less than 800 I doubt the hardware. Of course its difficult to doubt on ones own abilities! 🙂

Look at the examples you posted carefully at 100% magnification. You can tell by the cobblestones in the first image that focus was missed (based on what you said you attempted to focus). The second image is focused well behind the flowers in the foreground. The clock tower in the background is the most in focus area ofthe image. There are areas in both images that are in focus, they’re just not where you wanted to focus.