My first iPhone app – Part 3
Waveform of Audio File Installing I’ve tried a component FDWaveformView. It uses CocoaPods, a dependecy management tool like Python’s pip or Rust’s cargo. sudo gem install cocoapods
Waveform of Audio File Installing I’ve tried a component FDWaveformView. It uses CocoaPods, a dependecy management tool like Python’s pip or Rust’s cargo. sudo gem install cocoapods
Toast Toasts are simple message dialogs val text = “Hello toast!” val duration = Toast.LENGTH_SHORT val toast = Toast.makeText(applicationContext, text, duration) toast.show() Toast.makeText(this@MainActivity, “Hello Toast!”, Toast.LENGTH_SHORT).show()
Resistors with 4 rings Color 1. Ring 2. Ring 3. Ring – Multiplier 4. Ring – Tolerance black 0 1 x 1 – brown 1 1 x 10 1 % red 2 2 x 100 2 % orange 3 3 x 1.000 – yellow 4 4 x 10.000 – green 5 5 x 100.000 0.5%…
In the last article we looked at functions in Kotlin. But there is more to functions: Multiple return values All you Pythonistas already know the concept of multiple return values. Kotlin as a strongly typed language uses the Pair class to enable functions to return two values or Triple to return three. fun nextTwo(num: Int)…
Calculator for 4 rings 1. Ring 2. Ring 3. Ring 4. Ring Value Tolerance brownredorangeyellowgreenbluepurplegreywhite blackbrownredorangeyellowgreenbluepurplegreywhite blackbrownredorangeyellowgreenbluepurplegoldsilver brownredgreenbluepurplegoldsilver 0Ω 0% Calculator for 5 rings 1. Ring 2. Ring 3. Ring 4. Ring 5. Ring Value Tolerance brownredorangeyellowgreenbluepurplegreywhite blackbrownredorangeyellowgreenbluepurplegreywhite blackbrownredorangeyellowgreenbluepurplegreywhite blackbrownredorangeyellowgreenbluepurplegoldsilver brownredgreenbluepurplegoldsilver 0Ω 0%
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, } }
Home -> Conditional Formatting -> New Rule =MOD(ROW();2)=0
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…