Question: I have two big numpy arrays, I need to divide them.

Since I am working on Python 32-bits, and the arrays are too big, to avoid `FloatingPointError`, I am doing, for example:

```
x = numpy.array([...],dtype=object)
y = numpy.array([...].dtype=object)

```

The problem is that, inside the array `y`, some elements can be 0.0

So, my question, how to handle the calculation `x/y` and avoid `ZeroDivisionError`.

For exmaple, I would like to force `nan` if the element in `y` is 0. So that, for that particular element inside the array, the calculation `x/y=nan`

Answer: 
The permissions for the `storage` and `vendor` folders should stay at `775`, for obvious security reasons.

However, both your computer and your server Apache need to be able to write in these folders. Ex: when you run commands like `php artisan`, your computer needs to write in the logs file in `storage`.

All you need to do is to give ownership of the folders to Apache :

```
sudo chown -R www-data:www-data /path/to/your/project/vendor
sudo chown -R www-data:www-data /path/to/your/project/storage

```

Then you need to add your user (referenced by it's `username`) to the group to which the server Apache belongs. Like so :

```
sudo usermod -a -G www-data userName

```

**NOTE:** Most frequently, the group name is `www-data` but in your case, replace it with `_www`
If you have some code changes in some files and then some permission changes, it might be easier to set up the right permissions and commit again than try to pick the files that have permission changes.
You will only be left with the code changes.