Resistors and Color Code
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%…
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…
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: altgraph==0.16.1 Babel==2.7.0 beautifulsoup4==4.7.1 et-xmlfile==1.0.1 future==0.17.1 jdcal==1.4.1 Jinja2==2.10.1 macholib==1.11 MarkupSafe==1.1.1 money==1.3.0 pefile==2019.4.18 pipdeptree==0.13.2 psutil==5.6.3 PyInstaller==3.4 pytz==2019.1 pywin32==224 pywin32-ctypes==0.2.0 soupsieve==1.9.2 xlrd==1.2.0 With pipdeptree you get a tree with the sub-depdencies to…