Calculator for Resistor Values

Calculator for 4 rings

1. Ring 2. Ring 3. Ring 4. Ring Value Tolerance
0Ω 0%

Calculator for 5 rings

1. Ring 2. Ring 3. Ring 4. Ring 5. Ring Value Tolerance
0Ω 0%

Invalid Host Header with npm run server

I got an “Invalid Host Header” error when running a VueJs app on a linux machine with npm run serve.

To work around this you can put the following code into you vue.config.js file:

module.exports = {
    // options...
    devServer: {
        disableHostCheck: true,
    }
}

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”