- Install PostgreSQL with PostGIS via Postges.app
- Install brew as recommended.
- Install dependencies:
brew install geos gdal - Add the following to your settings:
# settings.py
GDAL_LIBRARY_PATH = os.getenv('GDAL_LIBRARY_PATH')
brew install geos gdal
# settings.py
GDAL_LIBRARY_PATH = os.getenv('GDAL_LIBRARY_PATH')
I have tried to setup redis as starting background task with wsl-autostart, Task Scheduler and with lot vbs scripts including one described here but none of them seemed to work.
In the end I have manually created a simple one that does the job. This script basically starts a hidden Ubuntu Window and starts redis-server inside it.
sudo apt install redis-server| # Uses python3 | |
| import sys | |
| def knapSackNoRep(capacity, bars): | |
| amount = len(bars) | |
| value=[[0 for row in range(0, amount+1)] for col in range(0, capacity+1)] | |
| for i in range(1, amount+1): | |
| wi = bars[i-1] |
| #!/usr/bin/env python3.5 | |
| import socket | |
| import asyncio | |
| from struct import pack, unpack | |
| class Client(asyncio.Protocol): | |
| def connection_made(self, transport): | |
| self.transport = transport | |
| self.server_transport = None |