DEVGET.NET Blog

0

Fix: Ubuntu touchpad stops working on wakeup

Create a file in /lib/systemd/system-sleep sudo vim /lib/systemd/system-sleep/fixmouse.sh Create a script which will reinstall the psmouse kernel module on wake #!/bin/sh case $1/$2 in pre/*) echo “Going to $2…” # Place your pre suspend...

0

Ubuntu 18.04 Tools and Apps

This serves to be an ever-changing personal list of what to install if I ever redo my Ubuntu machine. Currently I am running Ubuntu 18.04 so can only guarantee compatibility with that version. Uncommon Comfortable...

How to create an observable in Ionic v2 0

How to create an observable in Ionic v2

Observable.create(observer => { this.http.get(url, {headers}).subscribe(res => { this.response = res; observer.next(this.response); observer.complete(); }, err => { console.log(err); observer.error(err); observer.complete(); }); });

How to fix django cors issue 0

How to fix django cors issue

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’, ]

How to fix gradle in Intellij IDEA 0

How to fix gradle in Intellij IDEA

When starting a project in Intellij IDEA if you see an error around the lines of Gradle sync failed: The newly created daemon process has a different context than expected. It won’t be possible...