create a file middleware.py and type class CORSMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): response = self.get_response(request) response[‘Access-Control-Allow-Origin’] = “*” return response In settings.py add MIDDLEWARE = [ … ‘product.middleware.CORSMiddleware’, ]
TL:DR Even with Hyperthreading enabled, do not exceed the amount of PHYSICAL cores your machine has. The General rule for assigning CPU’s is to keep your virtual cpu count at or lower than your physical cpu count. (VMware blog) . Read more…
A new year has begun. Time to format my disks. New windows install and more importantly, new Linux install. With windows, the choice is easy. Windows 10. With Linux, it’s a bit more complicated….
Here were the candidates
Ubuntu 16.04 LTS
Here’s a little history about my relationship with Ubuntu. Ubuntu was my first distro and all was right with the world, I would never have left… that is..
until the fire nation att… until unity. It was a bit of a messy breakup, something about it just didn’t resonate with my soul. A year or two ago I tried it again but I remember seeing amazon search results integrated by default and was instantly disgusted. But time has passed, seasons have changed and I believe people learn from their mistakes..so I wanted to give it another shot. so I did… (more…)
With the newest update, windows has hidden the option “search online and include web results” and therefore has made it difficult for users to disable Cortana and Web results completely. Luckily for us there is a relatively easy fix. Type Read more…