Categories
None

Fix ubuntu 16.04 macbook brightness issue after lid close

Note: All tests are being done on 2013 macbook air Ubuntu on MacBook almost works perfectly like any other laptops out there. There are some issues though. One the most annoying one is the brightness issue. Once the lid is closed, it goes to sleep state. After waking up, only 2 options for the brightness […]

Categories
Tips

Serving Flask helloworld using uwsgi

uwsgi is a high performance, low-resource usage web server for deploying python application. In this post, i am going to show how to serve a simple HelloWorld¬†application in flask using uwsgi   Prerequisites pip install flask pip install uwsgi Now lets create our app.py from flask import Flask app = Flask(__name__) @app.route(“/”) def hello(): return […]