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: 
Change the permissions for your project folder to enable read/write/exec for any user within the group owning the directory (which in your case is `_www`):

```
chmod -R 775 /path/to/your/project

```

Then add your OS X username to the `_www` group to allow it access to the directory:

```
sudo dseditgroup -o edit -a yourusername -t user _www

```
I have used this snippet for more than 3 years.

```bash

laravel new demo 

cd demo 

sudo find ./ -type f -exec chmod 664 {} \;    
sudo find ./  -type d -exec chmod 775 {} \;

sudo chgrp -Rf www-data storage bootstrap/cache
sudo chmod -Rf ug+rwx storage bootstrap/cache
sudo chmod -Rf 775 storage/ bootstrap/

php artisan storage:link

```

And @realtebo recommendation looks good. I will try.

```bash
sudo find . -type d -exec chmod g+s {} \;  <----- NOTE THIS

```