Flask 1.1 is here!

From the flask release notes:

Returning a dict from a view function will produce a JSON response. This makes it even easier to get started building an API.

To get a minimal REST-Api all you have to do is:

from flask import Flask

app = Flask(__name__)

@app.route('/return_dict', methods=['GET'])
def return_dict():
    return {"x": "1"}


if __name__ == '__main__':
    app.run(debug=True)

Time Blocking / Time Boxing as Productivity Boost

Time Blocking

tl;dr; if something is really important to you, plan it in your calendar.

It is nice to have a to-do list in your to-do app, your Bullet Journal or on your Kanban board, but you have to allocate time for the execution of these tasks in your schedule.

Example: If you have a task called “Plan feedback sessions” you should make an entry in your calendar and dedicate some amount of time to it, let’s say half an hour.

The problem with most peoples calendars is the following: They are primarily empty! Continue reading “Time Blocking / Time Boxing as Productivity Boost”

Internet access in Android

If You want to access some internet resouces from your Android app you add

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

to your AndroidManifest.xml

When You have resources which do not use TLS (https but just http) you have to add

<application
        ...
        android:usesCleartextTraffic="true">
</application>