Monthly Archives: October 2018

Raspberry Pi 3, Python 3 + OpenCV 3.4

Install OpenCV 4 on your Raspberry Pi, 2018-09-26
Installing OpenCV 3.4.3 on Raspberry Pi 3 Model B+, 2018-09-05
Installing OpenCV on Raspberry Pi 3 B, 2018-04-27
Raspbian Stretch: Install OpenCV 3 + Python on your Raspberry Pi, 2017-09-04
Install guide: Raspberry Pi 3 + Raspbian Jessie + OpenCV 3, 2016-04-18
How to Install OpenCV 3.4.0 with Python 3 on Raspberry Pi 3, 2018-03-03
github.com/jabelone/OpenCV-for-Pi, A pre-compiled binary of OpenCV 3.1.0 for the Raspberry Pi

TI-Nspire Ndless

ndless

Ndless for TI-Nspire
Ndless Apps
github.com/ndless-nspire/Ndless/, The TI-Nspire calculator extension for native applications
Ndless – The TI-Nspire jailbreak !
[Tutorial] Install Ndless 4.5

ndless SDK

C and assembly development introduction

Debug

GDB debugging on TI-Nspire with Ncubate and Ndless

Apps

CAS

KhiCAS, le moteur formel Giac/Xcas pour toutes TI-Nspire

Linux

How to install Debian Linux on a TI-Nspire
nspire-linux-builds

HIDn

HIDn – drivers USB souris et clavier

nPDF

github.com/Legimet/nPDF, A document viewer for the TI-Nspire using MuPDF

MicroPython


micropython – Python for Nspire calculators
Micro Python (v 1.3.4)
TI-Nspire Python: STEM programming…

Libraries

Python standard libraries and micro-libraries

import sys
import cmath
import nsp
import micropython

print(dir(nsp))
['Texture', 'waitKeypress', 'readRTC']

print(dir(cmath))
['__name__', 'e', 'pi', 'phase', 'polar', 'rect',
'exp', 'log', 'log10', 'sqrt', 'cos', 'sin']

print(dir(micropython))
['__name__', 'mem_total', 'mem_current', 'mem_peak']

Misc.

MicroPython on Microcontrollers
Opening .py files with micropython on TI Nspire
github.com/jalawson/ulinalg, Small size matrix handling module with a few linear algebra operations specifically for MicroPython (Python3)
github.com/billtubbs/array_funcs, MicroPython functions written in assembly language for use with arrays to allow fast (vectorized) numeric computations.

TI-Nspire Lua

education.ti.com

Lua Scripting in TI-Nspire
TI-Nspire Lua Scripting eGuide

YouTube

TI Nspire Tech Skills Introduction to Lua Scripting

inspired-lua.org

Main Page
Overview of the API
gc:drawString

inspired-lua.org

Welcome to Inspired-Lua !
Part 1: Concepts and Basics
Part 2: How to make a .tns from a .lua file ?
Part 3: Linking Events
Part 4: Using a predefined variable in a TI-Nspire document
Part 5: Object Classes
Practice-oriented tutorials

Compass Learning Technologies (compasstech.com.au)

TI-Nspire Lua Scripting HQ
TI-Nspire Lua Scripting Tutorials
Scripting Tutorial – Lesson 1

Raspberry Pi 3: Capture Images

  • streamer
  • fswebcam

Using a standard USB webcam
How to get to know the information about a package before installation in terminal

$ dpkg -l | grep streamer
ii  streamer    3.103-4build1    amd64   television capture tool (images/movies)
$ dpkg-query -L streamer
/.
/usr
/usr/bin
/usr/bin/streamer
/usr/share
/usr/share/doc
/usr/share/doc/streamer
/usr/share/doc/streamer/contrib
/usr/share/doc/streamer/contrib/streamer-wrapper.pl
/usr/share/doc/streamer/copyright
/usr/share/man
/usr/share/man/es
/usr/share/man/es/man1
/usr/share/man/es/man1/streamer.1.gz
/usr/share/man/man1
/usr/share/man/man1/streamer.1.gz
/usr/share/doc/streamer/changelog.Debian.gz
$ apt-cache show streamer
Package: streamer
Architecture: amd64
Version: 3.103-4build1
Priority: extra
Section: universe/graphics
Source: xawtv
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Maximiliano Curia <maxy@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 147
Depends: xawtv-plugins (= 3.103-4build1), libc6 (>= 2.15), libjpeg8 (>= 8c)
Suggests: xawtv
Filename: pool/universe/x/xawtv/streamer_3.103-4build1_amd64.deb
Size: 51160
MD5sum: 636721f327bc4f4fde578a00a54c1681
SHA1: 74e33e4701a2f088fb59ee047cf3d2585573b900
SHA256: 8eb2eb221a4f6081e259f2952b94307e37197096594adf14fb5b72ac746d403e
Description-en: television capture tool (images/movies)
 This package provides a tool to capture single/multiple images or
 record movies from a video4linux device.
Description-md5: c56164a96d1b651ec6a53b9c04d5cd9d

$ apt-cache showpkg streamer
Package: streamer
Versions: 
3.103-4build1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-amd64_Packages
                  MD5: c56164a96d1b651ec6a53b9c04d5cd9d
 Description Language: 
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-i386_Packages
                  MD5: c56164a96d1b651ec6a53b9c04d5cd9d
 Description Language: en
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_i18n_Translation-en
                  MD5: c56164a96d1b651ec6a53b9c04d5cd9d


Reverse Depends: 
  cinnamon,streamer
  streamer:i386,streamer
  xscreensaver,streamer
  prey,streamer
Dependencies: 
3.103-4build1 - xawtv-plugins (5 3.103-4build1) libc6 (2 2.15) libjpeg8 (2 8c) xawtv (0 (null)) streamer:i386 (32 (null)) 
Provides: 
3.103-4build1 - 
Reverse Provides: 
$ apt-cache depends streamer
streamer
  Depends: xawtv-plugins
  Depends: libc6
  Depends: libjpeg8
  Suggests: xawtv

TSM_EmbHarw

Woche 10

Maximale Laufzeit, Worst Case Execution Time( WCET)
Isochrone
Isochronität
PROFINET Handbuch, Prof. Max Felser, Berner Fachhochschule
MinutePROFINET Industrial Internet of Things: PROFINET Intro

Woche 13

Cache Placement Policies
CSCI 4717: Direct Mapping Cache Assignment
Direct Mapping — Map cache and main memory
CPU cache
Cache-Algorithmus
Cache-Kohärenz

  • Zustandsmaschine
  • Automat
  • Moor-Automat
  • Mealy-Automat

Schaltwerke
Technische Informatik – Automaten
Kellerautomat
Die (Halbleitertechnik) (Chip, Teil eines Halbleiter-Wafers)
Latch
Lookup-Tabelle (LUT)
Multiplexer (MUX)
Combinatory logic
Kombinatorische Logik

VHDL

“Use” and “Library” in VHDL
How to use a Package in your VHDL design – with Example code!
Non-synthesisable VHDL code for 8 point FFT algorithm
Entity Instantiation – An easy way of Port mapping your components
Four (and a half) ways to write VHDL instantiations
Configurations: Part 1
Configuration Declaration
Component Instantiation

entity        = primary unit, external view, chip pins
architecture  = secondary unit, internal view, package body, chip die
design entity = entity + architecture
components

package       = user defined data types, constants,
                functions, procedures
library       = collection of related packages

Quartus 18.1 on Ubuntu

Abkürzungen

.qws Quartus Workspace File (Settings and Configuration Files)
.qsf Quartus Settings File
.qpf Quartus Project File
.bdf Block Design File

Videos

Scripting with Quartus Prime

Problems

How to dockerize Intel Quartus 18.01

$ jtagconfig 
No JTAG hardware available

<Connect Board>

$ jtagconfig 
1) USB-Blaster [1-2]
^C

$ sudo killall jtagd
$ jtagconfig 
1) USB-Blaster [1-2]
  020F40DD   10CL040(Y|Z)/EP3C40/EP4CE30/..
$ jtagd --foreground --debug
JTAG daemon started
Using config file /etc/jtagd/jtagd.conf
Remote JTAG permitted when password set
No USB device change detection because libudev.so.0 not found
USB-Blaster "USB-Blaster" firmware version 4.00
USB-Blaster endpoints out=02(64), in=81(64); urb size=1024
USB-Blaster added "USB-Blaster [1-2]"

$ cd /lib/x86_64-linux-gnu/
$ sudo ln -s libudev.so.1 libudev.so.0
$ ls -la libudev.so*
lrwxrwxrwx 1 root root     12 Oct 17 13:10 libudev.so.0 -> libudev.so.1
lrwxrwxrwx 1 root root     16 Jul 20 19:13 libudev.so.1 -> libudev.so.1.6.9
-rw-r--r-- 1 root root 121016 Jul 20 19:13 libudev.so.1.6.9

$ jtagd --foreground --debug
JTAG daemon started
Using config file /etc/jtagd/jtagd.conf
Remote JTAG permitted when password set
USB-Blaster "USB-Blaster" firmware version 4.00
USB-Blaster endpoints out=02(64), in=81(64); urb size=1024
USB-Blaster added "USB-Blaster [1-2]"

ModelSim on Ubuntu

https://www.cc.gatech.edu/~hadi/teaching/cs3220/doc/modelsim/modelsimTutorial.pdf
ModelSim 10.1a Tutorial (PDF), p. 69, Automating Simulation

Videos

Modelsim/Quartus Tutorial
ModelSim Tutorial

Problems

Altera-Modelsim can not start on Ubuntu 18.04
ModelSim Installation issues – Ubuntu 14.xx and above
Making ModelSim ALTERA STARTER EDITION vsim 10.1d work on Ubuntu 14.04

$ ls -la /opt/intelFPGA_lite/18.1/modelsim_ase/bin/vcom 
lrwxrwxrwx 1 root root 6 Oct  3 15:53 /opt/intelFPGA_lite/18.1/modelsim_ase/bin/vcom -> ../vco

$ ls -la /opt/intelFPGA_lite/18.1/modelsim_ase/bin/vsim
lrwxrwxrwx 1 root root 6 Oct  3 15:53 /opt/intelFPGA_lite/18.1/modelsim_ase/bin/vsim -> ../vco

$ sudo xed /opt/intelFPGA_lite/18.1/modelsim_ase/vco
 13: mode=${MTI_VCO_MODE:-"32"}
     [...]
210:  *)                vco="linux" ;;

$ /opt/intelFPGA_lite/18.1/modelsim_ase/bin/vsim 
Error in startup script: 
Initialization problem, exiting.

Initialization problem, exiting.

    while executing
"InitializeINIFile quietly"
    invoked from within
"ncFyP12 -+"
    (file "/mtitcl/vsim/vsim" line 1)
** Fatal: Read failure in vlm process (0,0)

$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install gcc-multilib g++-multilib lib32z1 lib32stdc++6 lib32gcc1 \
  expat:i386 fontconfig:i386 libfreetype6:i386 libexpat1:i386 libc6:i386 \
  libgtk-3-0:i386 libcanberra0:i386 libice6:i386 libsm6:i386 libncurses5:i386 \
  zlib1g:i386 libx11-6:i386 libxau6:i386 libxdmcp6:i386 libxext6:i386 libxft2:i386 \
  libxrender1:i386 libxt6:i386 libxtst6:i386
$ wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.12.tar.bz2
$ tar -xjf freetype-2.4.12.tar.bz2
$ cd freetype-2.4.12
$ ./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
$ make -j8
$ sudo mkdir /opt/intelFPGA_lite/18.1/modelsim_ase/lib32
$ sudo cp objs/.libs/libfreetype.so* /opt/intelFPGA_lite/18.1/modelsim_ase/lib32
dir=`dirname "$arg0"`
export LD_LIBRARY_PATH=${dir}/lib32

$ /opt/intelFPGA_lite/18.1/modelsim_ase/bin/vsim
WORKS!

VirtualBox

$ sudo dpkg -i virtualbox-5.2_5.2.20-125813~Ubuntu~bionic_amd64.deb 
[sudo] password for andreas: 
Selecting previously unselected package virtualbox-5.2.
(Reading database ... 378749 files and directories currently installed.)
Preparing to unpack virtualbox-5.2_5.2.20-125813~Ubuntu~bionic_amd64.deb ...
Unpacking virtualbox-5.2 (5.2.20-125813~Ubuntu~bionic) ...
dpkg: dependency problems prevent configuration of virtualbox-5.2:
 virtualbox-5.2 depends on libcurl4 (>= 7.16.2); however:
  Package libcurl4 is not installed.
 virtualbox-5.2 depends on libqt5opengl5 (>= 5.0.2); however:
  Package libqt5opengl5 is not installed.

dpkg: error processing package virtualbox-5.2 (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (237-3ubuntu10.3) ...
Processing triggers for ureadahead (0.100.0-20) ...
ureadahead will be reprofiled on next reboot
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.9-2) ...
Errors were encountered while processing:
 virtualbox-5.2

$ sudo apt-get --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libasn1-8-heimdal:i386 libffi6:i386 libgmp10:i386 libgnutls30:i386 libgssapi-krb5-2:i386 libgssapi3-heimdal:i386 libhcrypto4-heimdal:i386 libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhogweed4:i386 libhx509-5-heimdal:i386
  libidn2-0:i386 libk5crypto3:i386 libkeyutils1:i386 libkrb5-26-heimdal:i386 libkrb5-3:i386 libkrb5support0:i386 libldap-2.4-2:i386 libnettle6:i386 libnghttp2-14:i386 libp11-kit0:i386 libpsl5:i386 libroken18-heimdal:i386 librtmp1:i386
  libsasl2-2:i386 libsasl2-modules-db:i386 libsqlite3-0:i386 libssl1.0.0:i386 libtasn1-6:i386 libunistring2:i386 libwind0-heimdal:i386 linux-headers-4.15.0-33 linux-headers-4.15.0-33-generic linux-image-4.15.0-33-generic
  linux-modules-4.15.0-33-generic linux-modules-extra-4.15.0-33-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libcurl4 libqt5opengl5
The following packages will be REMOVED:
  libcurl3:i386 libcurl3
The following NEW packages will be installed:
  libcurl4 libqt5opengl5
0 upgraded, 2 newly installed, 2 to remove and 25 not upgraded.
1 not fully installed or removed.
Need to get 132 kB/346 kB of archives.
After this operation, 151 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libqt5opengl5 amd64 5.9.5+dfsg-0ubuntu1 [132 kB]
Fetched 132 kB in 0s (834 kB/s)         
(Reading database ... 379569 files and directories currently installed.)
Removing libcurl3:i386 (7.58.0-2ubuntu2) ...
Removing libcurl3:amd64 (7.58.0-2ubuntu2) ...
Selecting previously unselected package libcurl4:amd64.
(Reading database ... 379561 files and directories currently installed.)
Preparing to unpack .../libcurl4_7.58.0-2ubuntu3.3_amd64.deb ...
Unpacking libcurl4:amd64 (7.58.0-2ubuntu3.3) ...
Selecting previously unselected package libqt5opengl5:amd64.
Preparing to unpack .../libqt5opengl5_5.9.5+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5opengl5:amd64 (5.9.5+dfsg-0ubuntu1) ...
Setting up libcurl4:amd64 (7.58.0-2ubuntu3.3) ...
Setting up libqt5opengl5:amd64 (5.9.5+dfsg-0ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up virtualbox-5.2 (5.2.20-125813~Ubuntu~bionic) ...
Adding group `vboxusers' (GID 129) ...
Done.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

$ sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

$ virtualbox 
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.15.0-36-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.

FTP_OrdDiff

Wochen

Woche 1

Autonomous system (mathematics)
Autonome Differentialgleichung
Ordinary differential equation
Gewöhnliche Differentialgleichung
Lineare gewöhnliche Differentialgleichung

Woche 7

Differenzialgleichungssystem mit Eigenvektoren, Eigenwerten lösen | Mathe by Daniel Jung
Komplexwertige Eigenwerte/Eigenvektoren und Diagonalisierung einer Matrix im komplexen Vektorraum

Woche 9

Residuum
Residuum (Numerische Mathematik)
Störgröße und Residuum
[AKA 01] Ausgewählte Kapitel aus Analysis (Teaser)
[AKA 03] Richtungsfeld, Phasenraum, kritische Punkte
SYSTEMTHEORIE – Theorie linearer Regelsysteme (PDF)

Woche 10

Differentialgleichungen – Stabilität von Differentialgleichungen (Beispiel)

Woche 11

Pendel
Mathematisches Pendel
Physikalisches Pendel
Harmonischer Oszillator
Schwingung
Erzwungene Schwingung
Federpendel
Schwingungen – Einstieg (1) (StudyHelpTV)

Anhang

Quadratische Terme durch Faktorisieren lösen
Nullstellen – Quadratische Funktionen – Faktorisieren und Ausklammern

Quadratische Ergänzung
Scheitelpunkt
Quadratische Ergänzung, Ablauf | Mathe by Daniel Jung

Ableiten Generell

Mehrdimensionale Kettenregel
Ableitung mit Wurzel Produktregel

Implizites Ableiten

Wikipedia: Implizite Differentiation
OberPrima.com: Implizites Ableiten (Playlist)
OberPrima.com: Implizites Ableiten Teil 1
turksvids: Implicit Differentiation on the TI-Nspire CAS

impDif(x^2 + y^2 = 8, x, y)
comDenom(-x^2 / y^3 - 1/y)

Diagonalisierbarkeit einer Matrix

Diagonalmatrix
Normale Matrix
Diagonalmatrix D und invert. Matrix T
Orthogonale Matrix
Eigenvalues, Determinants and Diagonalization
Diagonalisierbare Matrix
Reguläre Matrix / Invertierbare Matrix
Eigenraum einer Matrix, Lineare Algebra, Matrixalgebra, Unimathematik | Mathe by Daniel Jung
Matrix diagonalisieren, Beispiel, Matrixalgebra, Lineare Algebra | Mathe by Daniel Jung

A = TDT^-1

D = Diagonalmatrix
T = Orthogonalmatrix, invertierbare Matrix

Normalform

Normal forms
Equilibrium

Exakte Differentialgleichung

Exakte Differentialgleichung
Exact differential equation

Autonomous ODE

Introduction to autonomous differential equations

Gewöhnlichen linearen Differentialgleichungen mit konstanten Koeffizienten

Inhomogene lineare DG erster Ordnung
Homogene lineare Differentialgleichung zweiter Ordnung mit konstanten Koeffizienten
Inhomogene lineare Differentialgleichung zweiter Ordnung mit konstanten Koeffizienten
Quadratische Gleichung – Allgemeine Lösungsformeln (Mitternachtsformel)

Charakteristische Gleichung
Inhomogene lineare Differentialgleichung I
Inhomogene Differentialgleichungen – Prüfen auf Resonanz

Daniel Jung

Differentialgleichung, Differenzialgleichung, Übersicht, Schreibweisen | Mathe by Daniel Jung
Differentialgleichungen, allgemeiner Lösungsansatz, 2. Ordnung, homogen | Mathe by Daniel Jung
Abbildungen, linear und affin, Eigenwerte, Eigenvektoren (Playlist)