Python implementation issue.
Default values are class attributes, which are shared among all instances!
Reference: https://peps.python.org/pep-0557/#mutable-default-values
So dataclasses tries to fix this...
class X:Python implementation issue.
Default values are class attributes, which are shared among all instances!
Reference: https://peps.python.org/pep-0557/#mutable-default-values
So dataclasses tries to fix this...
class X:commit 1a234d1510eb00771f598acd2bb6aef792e14be0 (HEAD -> main) Author: Gunnar Andersson [email protected] Date: Wed Jun 2 12:54:36 2021 +0200
README.md: Fix links to Qt and individual files
Signed-off-by: Gunnar Andersson <[email protected]>
| #!/usr/bin/python3 | |
| units = [ | |
| "A", | |
| "N.m", | |
| "PS", | |
| "UNIX Timestamp", | |
| "V", | |
| "celsius", | |
| "cm", | 
To remove a submodule you need to:
| #!/bin/bash | |
| # SETTINGS WARNING - get HOST DEVICE right or overwrite the wrong disk! | |
| HOST_DEVICE=/dev/sda | |
| HOST_DEVICE_PARTIION=${HOST_DEVICE}1 | |
| SDIMG=genivi-dev-platform-r-car.sdimg | |
| DD=dcfldd # Change to dd if you don't have dcfldd installed | |
| MOUNTPOINT=/tmp/rcar_sd_mount | |
| #set -e | 
| # Start the old vagrant | |
| $ vagrant init centos-6.3 | |
| $ vagrant up | |
| # You should see a message like: | |
| # [default] The guest additions on this VM do not match the install version of | |
| # VirtualBox! This may cause things such as forwarded ports, shared | |
| # folders, and more to not work properly. If any of those things fail on | |
| # this machine, please update the guest additions and repackage the | |
| # box. | 
| #!/bin/sh | |
| uncrustify -c uncrustify.cfg --no-backup `git ls-tree --name-only -r HEAD | grep \\\.[ch]$ | grep -v gvdb` | |
| # from https://github.com/flatpak/flatpak/ (LGPLv2) | |
| # Example config | |
| newlines lf | |
| input_tab_size 8 | |
| output_tab_size 8 | 
| From: | |
| https://github.com/moto-timo/eclipse-poky-1/blob/timo/maven/.travis.yml | |
| # Although this looks like it does nothing, | |
| # a default behavior in Travis CI is to | |
| # call "mvn install...", so this is actually | |
| # enough to build the project | |
| # | |
| # https://docs.travis-ci.com/user/languages/java/ | |
| # | 
Docker image to Virtualbox disk
https://stackoverflow.com/questions/23436613/how-can-i-convert-a-docker-image-into-a-vagrant-virtualbox-box by user blueskin (CC by-sa 3.0)
Find the size of the docker image from docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
| ## Install necessary packages | |
| $ sudo apt-get install virtualbox-ose qemu-utils genisoimage cloud-utils | |
| ## get kvm unloaded so virtualbox can load | |
| $ sudo modprobe -r kvm_amd kvm_intel | |
| $ sudo service virtualbox stop | |
| $ sudo service virtualbox start | |
| ## URL to most recent cloud image of 12.04 | |
| $ img_url="http://cloud-images.ubuntu.com/server/releases/12.04/release" |