Nürnberg Digital Festival 2019
Some impressions from Nürnberg Digital Festival 2019 aka Web Week Part 1 – Visionary Day @ Proact Part 2 – ADAC Mobility BarCamp Part 3 – DATEV DigiCamp Bottom line Exhausted and fueled!
Some impressions from Nürnberg Digital Festival 2019 aka Web Week Part 1 – Visionary Day @ Proact Part 2 – ADAC Mobility BarCamp Part 3 – DATEV DigiCamp Bottom line Exhausted and fueled!
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__…
When using PyInstaller to package an application to a self-containing bundle you might run into some pitfalls: Pitfall 1: PyInstaller overwrites spec file The first time you run pyinstaller you run it with pyi-makespec my_module.py instead of pyinstaller my_module.py pyi-makespec will generate a my_module.spec which you can alter. Afterwards you just ran pyinstaller my_module.spec to…
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…
Let’s say you have a project with the following top level dependencies: xlrd money babel pyinstaller jinja2 pywin32 After installing them you have the following packages:
This time we look at functions. Let’s take a simple function from Java: public int mult(int num1, int num2){ return num1 * num2; } In Kotlin it would look like this: fun mult(num1: Int, num2: Int): Int{ return num1 * num2 } A function definition always starts with the keyword fun. That’s fun isn’t it?…
This time we deal with loops Loops Kotlin has two types of loops: for and while. For-loop for(x in 1..10){ println(“Loop: $x”) } We can count backwards as well for (x in 10 downTo 1) { println(“Loop: $x”) } While-loop var i = 10 while(i > 0) { println(“$i”) i– } Break & Continue for(x…
Conditionals This is a pretty quick one: Kotlin has the standard Java if / else if / else statements val age = 12 if (age < 5) { println(“Go to kindergarten”) } else if (age == 5) { println(“Go to pre-school”) } else if (age > 5 && age <= 17) { println(“Go to grade…
After Learning Kotlin – Part 1 and Learning Kotlin – Part 2 we will now dive into the ranges. One nice little feature is the .. syntax: you can generate an IntRange object just by specifying the start and the end element: val oneTo10 = 1..10 You can even use values for the start and…
Features and Permissions A permission is something an app is allowed to do 🙂 E.g. using the camera, reading location or accessing your contacts. <uses-permission android:name=”android.permission.CAMERA” /> <uses-feature android:name=”android.hardware.camera” android:required=”true” /> Internet Access If your app uses e.g. web-APIs you need internet access. This can be achieved by adding android.permission.INTERNET to your manifest. In this…